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
parent
07f24a3d3d
commit
33ae5d3ac2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue