1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-31 22:05:10 +02:00

Recreate screen on UI scaling change

This commit is contained in:
Ivan Savenko 2023-07-13 20:10:10 +03:00
parent c0f0c3cedd
commit e4e353449e

View File

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