Remember LastSystemUIScaleFactor when changing OS DPI scale factor (or move to another display with different factor) to prevent re-setting UI scale factor and message popup on next startup

meow-7.2.2
Ansariel 2016-11-25 15:54:11 +01:00
parent 07f24a3d3d
commit 33ae5d3ac2
1 changed files with 1 additions and 0 deletions

View File

@ -1684,6 +1684,7 @@ BOOL LLViewerWindow::handleDPIChanged(LLWindow *window, F32 ui_scale_factor, S32
if (ui_scale_factor >= MIN_UI_SCALE && ui_scale_factor <= MAX_UI_SCALE)
{
gSavedSettings.setF32("LastSystemUIScaleFactor", ui_scale_factor); // <FS:Ansariel> Remember last used system UI scale factor
gSavedSettings.setF32("UIScaleFactor", ui_scale_factor);
LLViewerWindow::reshape(window_width, window_height);
mResDirty = true;