mac build fix (add up to: https://bitbucket.org/lindenlab/viewer-cougar/pull-requests/46/clean-up-ui-scaling/diff)
parent
5715cda6e0
commit
e58a45ec46
|
|
@ -1763,17 +1763,6 @@ LLViewerWindow::LLViewerWindow(const Params& p)
|
|||
LLCoordScreen scr;
|
||||
mWindow->getSize(&scr);
|
||||
|
||||
#if LL_DARWIN
|
||||
F32 system_scale_factor = 1.f;
|
||||
#else
|
||||
F32 system_scale_factor = mWindow->getSystemUISize();
|
||||
if (system_scale_factor < MIN_UI_SCALE || system_scale_factor > MAX_UI_SCALE)
|
||||
{
|
||||
// reset to default;
|
||||
system_scale_factor = 1.f;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Get the real window rect the window was created with (since there are various OS-dependent reasons why
|
||||
// the size of a window or fullscreen context may have been adjusted slightly...)
|
||||
F32 ui_scale_factor = llclamp(gSavedSettings.getF32("UIScaleFactor"), MIN_UI_SCALE, MAX_UI_SCALE) * mWindow->getSystemUISize();
|
||||
|
|
|
|||
Loading…
Reference in New Issue