fixed bug with window scaling selection list not updated by window resize
authorHolger Schemel <info@artsoft.org>
Thu, 21 Apr 2016 22:47:37 +0000 (00:47 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 21 Apr 2016 22:47:37 +0000 (00:47 +0200)
src/screens.c

index c69b78fb4fcd4e22bd1f2e12a742ba23b4756479..ec7d7b66cc928ace7caf6f292c6e3b4ffb4ebb7d 100644 (file)
@@ -4707,16 +4707,14 @@ static void execSetupGraphics_setRenderingModes()
 
 static void execSetupGraphics()
 {
+  // update "setup.window_scaling_percent" from list selection
+  // (in this case, window scaling was changed on setup screen)
   if (setup_mode == SETUP_MODE_CHOOSE_WINDOW_SIZE)
-  {
-    // update "setup.window_scaling_percent" from list selection
     execSetupGraphics_setWindowSizes(FALSE);
-  }
-  else
-  {
-    // update list selection from "setup.window_scaling_percent"
-    execSetupGraphics_setWindowSizes(TRUE);
-  }
+
+  // update list selection from "setup.window_scaling_percent"
+  // (window scaling may have changed by resizing the window)
+  execSetupGraphics_setWindowSizes(TRUE);
 
   execSetupGraphics_setScalingTypes();
   execSetupGraphics_setRenderingModes();