summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-08-24 22:26:09 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-08-25 20:19:22 +0300
commit82caf452cdaa59357a25d0844afe0012419beed2 (patch)
tree279ff14008d5ec50ec78af220b8a09a1c093f0fd /indra/newview/llviewerwindow.cpp
parent60b7e3b78cc401318e4f895bb64b5688645b3462 (diff)
p#700 Extra scale logging
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r--indra/newview/llviewerwindow.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 8730b14614..32af06cd0d 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -1960,7 +1960,7 @@ LLViewerWindow::LLViewerWindow(const Params& p)
LLNotifications::instance().setIgnoreAllNotifications(ignore);
if (ignore)
{
- LL_INFOS() << "NOTE: ALL NOTIFICATIONS THAT OCCUR WILL GET ADDED TO IGNORE LIST FOR LATER RUNS." << LL_ENDL;
+ LL_INFOS("Window") << "NOTE: ALL NOTIFICATIONS THAT OCCUR WILL GET ADDED TO IGNORE LIST FOR LATER RUNS." << LL_ENDL;
}
@@ -2028,6 +2028,23 @@ LLViewerWindow::LLViewerWindow(const Params& p)
gSavedSettings.setF32("UIScaleFactor", 1.f);
}
gSavedSettings.setBOOL("ResetUIScaleOnFirstRun", false);
+ LL_DEBUGS("Window") << "ResetUIScaleOnFirstRun fired:"
+ << " system_ui_size=" << mWindow->getSystemUISize()
+ << " UIScaleFactor_after_reset=" << gSavedSettings.getF32("UIScaleFactor")
+ << " screen_size=" << scr.mX << "x" << scr.mY
+ << " pixel_aspect_ratio=" << mWindow->getPixelAspectRatio()
+ << " ResetUIScaleOnFirstRun=" << gSavedSettings.getBOOL("ResetUIScaleOnFirstRun")
+ << LL_ENDL;
+ }
+ else
+ {
+ LL_DEBUGS("Window") << "Display init diagnostics:"
+ << " screen_size=" << scr.mX << "x" << scr.mY
+ << " system_ui_size=" << mWindow->getSystemUISize()
+ << " pixel_aspect_ratio=" << mWindow->getPixelAspectRatio()
+ << " saved_UIScaleFactor=" << gSavedSettings.getF32("UIScaleFactor")
+ << " ResetUIScaleOnFirstRun=" << gSavedSettings.getBOOL("ResetUIScaleOnFirstRun")
+ << LL_ENDL;
}
// Get the real window rect the window was created with (since there are various OS-dependent reasons why
@@ -2036,6 +2053,12 @@ LLViewerWindow::LLViewerWindow(const Params& p)
mDisplayScale.setVec(llmax(1.f / mWindow->getPixelAspectRatio(), 1.f), llmax(mWindow->getPixelAspectRatio(), 1.f));
mDisplayScale *= ui_scale_factor;
+ LL_DEBUGS("Window") << "Display scale computed:"
+ << " ui_scale_factor=" << ui_scale_factor
+ << " mDisplayScale=" << mDisplayScale
+ << " (clamped_to=[" << MIN_UI_SCALE << ", " << MAX_UI_SCALE << "])"
+ << LL_ENDL;
+
LLUI::setScaleFactor(mDisplayScale);
LLFontGL::sResolutionGeneration++;