diff options
Diffstat (limited to 'linden/indra/newview/llpaneldisplay.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldisplay.cpp | 10 |
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 | ||