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();
|
||||
galOpts.m_fullscreenCursor = !galOpts.m_fullscreenCursor;
|
||||
|
||||
galOpts.NotifyChanged();
|
||||
|
||||
auto canvas = GetCanvas();
|
||||
|
||||
canvas->CrossHairOff( );
|
||||
canvas->CrossHairOn( );
|
||||
// make sure the cursor is redrawn
|
||||
GetCanvas()->Refresh();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue