From 2574a8d71ef39692cb6c37c1915d36065bfa25ab Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 9 Oct 2020 19:23:38 +0100 Subject: [PATCH] Update GAL observers for all frames, not just calling frame. Also don't rely on UpdateScaleFactor to do it as it only does it if the scale factor changed. Fixes https://gitlab.com/kicad/code/kicad/issues/5621 --- common/gal/gal_display_options.cpp | 4 ++-- common/widgets/gal_options_panel.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/gal/gal_display_options.cpp b/common/gal/gal_display_options.cpp index c8f8046700..ea5b55e4c8 100644 --- a/common/gal/gal_display_options.cpp +++ b/common/gal/gal_display_options.cpp @@ -100,9 +100,9 @@ void GAL_DISPLAY_OPTIONS::ReadCommonConfig( COMMON_SETTINGS& aSettings, wxWindow aSettings.m_Graphics.cairo_aa_mode ); m_dpi = DPI_SCALING( &aSettings, aWindow ); - - // Also calls NotifyChanged UpdateScaleFactor(); + + NotifyChanged(); } diff --git a/common/widgets/gal_options_panel.cpp b/common/widgets/gal_options_panel.cpp index b93df07705..6bd3b25d0f 100644 --- a/common/widgets/gal_options_panel.cpp +++ b/common/widgets/gal_options_panel.cpp @@ -222,7 +222,5 @@ bool GAL_OPTIONS_PANEL::TransferDataFromWindow() m_galOptions.m_forceDisplayCursor = m_forceCursorDisplay->GetValue(); - m_galOptions.NotifyChanged(); - return true; }