Didn't actually want to commit the latter ui-scale related change, but rebasing is too annoying, so revert.

This commit is contained in:
Shyotl
2013-05-27 19:23:36 -05:00
parent ba9c8f3d6d
commit 641ada030e

View File

@@ -1586,15 +1586,7 @@ LLViewerWindow::LLViewerWindow(
F32 ui_scale_factor = gSavedSettings.getF32("UIScaleFactor");
mDisplayScale.setVec(llmax(1.f / mWindow->getPixelAspectRatio(), 1.f), llmax(mWindow->getPixelAspectRatio(), 1.f));
if(mWindow->getFullscreen())
{
F32 height_normalization = gSavedSettings.getBOOL("UIAutoScale") ? ((F32)mWindowRectRaw.getHeight() / mDisplayScale.mV[VY]) / 768.f : 1.f;
mDisplayScale *= (ui_scale_factor * height_normalization);
}
else
{
mDisplayScale *= ui_scale_factor;
}
mDisplayScale *= ui_scale_factor;
LLUI::setScaleFactor(mDisplayScale);
{