EDA_DRAW_FRAME: avoid cursor flickering in GAL when changing cursor size
Fixes: lp:1797437
This commit is contained in:
parent
711b278248
commit
7f132ca261
|
@ -409,12 +409,11 @@ void EDA_DRAW_FRAME::OnToggleCrossHairStyle( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
auto& galOpts = GetGalDisplayOptions();
|
auto& galOpts = GetGalDisplayOptions();
|
||||||
galOpts.m_fullscreenCursor = !galOpts.m_fullscreenCursor;
|
galOpts.m_fullscreenCursor = !galOpts.m_fullscreenCursor;
|
||||||
|
|
||||||
galOpts.NotifyChanged();
|
galOpts.NotifyChanged();
|
||||||
|
|
||||||
auto canvas = GetCanvas();
|
// make sure the cursor is redrawn
|
||||||
|
GetCanvas()->Refresh();
|
||||||
canvas->CrossHairOff( );
|
|
||||||
canvas->CrossHairOn( );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue