From 56f2e20cb4e587a9a6068f0c181218de9656c6f0 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Wed, 3 Sep 2014 08:08:59 -0400 Subject: [PATCH] Feature Request: Add LiruResizeRootWithScreen to prevent ui getting messed up when the window is resized This is not complete, and it should only be used if you know what you're getting into. --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llviewerwindow.cpp | 1 + 2 files changed, 12 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 8d90bea74..53871f51f 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -808,6 +808,17 @@ Value 1 + LiruResizeRootWithScreen + + Comment + When false, the ui view won't resize when the screen does (floaters won't move around without user interaction, but they also might be restricted from moving everywhere). + Persist + 1 + Type + Boolean + Value + 1 + LiruLegacyScrollToEnd Comment diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 099927c6d..5530628c9 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -2399,6 +2399,7 @@ void LLViewerWindow::reshape(S32 width, S32 height) // Inform lower views of the change // round up when converting coordinates to make sure there are no gaps at edge of window LLView::sForceReshape = display_scale_changed; + if (/*display_scale_changed && */gSavedSettings.getBOOL("LiruResizeRootWithScreen")) // Singu Note: Nasty hack to keep floaters from repositioning on window resize. mRootView->reshape(llceil((F32)width / mDisplayScale.mV[VX]), llceil((F32)height / mDisplayScale.mV[VY])); LLView::sForceReshape = FALSE;