Browse Source

Recreate screen on UI scaling change

Ivan Savenko 2 years ago
parent
commit
e4e353449e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      client/windows/settings/GeneralOptionsTab.cpp

+ 5 - 0
client/windows/settings/GeneralOptionsTab.cpp

@@ -370,6 +370,11 @@ void GeneralOptionsTab::setGameScaling(int index)
 	gameRes["scaling"].Float() = scaling;
 
 	widget<CLabel>("scalingLabel")->setText(scalingToLabelString(scaling));
+
+	GH.dispatchMainThread([](){
+		boost::unique_lock<boost::recursive_mutex> lock(*CPlayerInterface::pim);
+		GH.onScreenResize();
+	});
 }
 
 void GeneralOptionsTab::selectLongTouchDuration()