mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
Recreate screen on UI scaling change
This commit is contained in:
parent
c0f0c3cedd
commit
e4e353449e
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user