aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldisplay.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-01-28 20:04:52 -0600
committerJacek Antonelli2009-01-28 20:05:02 -0600
commit0ef11cf31364456ec247b0fc7ad8f6d1de408400 (patch)
tree50754b286468147a70271253a2a74215c80e1354 /linden/indra/newview/llpaneldisplay.cpp
parentSecond Life viewer sources 1.22.5-RC (diff)
downloadmeta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.zip
meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.gz
meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.bz2
meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.xz
Second Life viewer sources 1.22.6-RC
Diffstat (limited to 'linden/indra/newview/llpaneldisplay.cpp')
-rw-r--r--linden/indra/newview/llpaneldisplay.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp
index 0d7caac..d510775 100644
--- a/linden/indra/newview/llpaneldisplay.cpp
+++ b/linden/indra/newview/llpaneldisplay.cpp
@@ -797,7 +797,15 @@ void LLPanelDisplay::applyResolution()
797 gSavedSettings.setF32("FullScreenAspectRatio", mAspectRatio); 797 gSavedSettings.setF32("FullScreenAspectRatio", mAspectRatio);
798 } 798 }
799 799
800 gViewerWindow->requestResolutionUpdate(!mCtrlWindowed->get(), mCtrlFullScreen->getCurrentIndex()); 800 // Screen resolution
801 S32 num_resolutions;
802 LLWindow::LLWindowResolution* supported_resolutions =
803 gViewerWindow->getWindow()->getSupportedResolutions(num_resolutions);
804 U32 resIndex = mCtrlFullScreen->getCurrentIndex();
805 gSavedSettings.setS32("FullScreenWidth", supported_resolutions[resIndex].mWidth);
806 gSavedSettings.setS32("FullScreenHeight", supported_resolutions[resIndex].mHeight);
807
808 gViewerWindow->requestResolutionUpdate(!mCtrlWindowed->get());
801 809
802 send_agent_update(TRUE); 810 send_agent_update(TRUE);
803 811