EDA_DRAW_FRAME: avoid cursor flickering in GAL when changing cursor size

Fixes: lp:1797437
This commit is contained in:
Tomasz Włostowski 2018-10-12 23:19:26 +02:00
parent 711b278248
commit 7f132ca261
1 changed files with 3 additions and 4 deletions

View File

@ -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();
}