summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-06-15 17:21:27 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-06-15 17:21:27 -0700
commit83a7a342ea83441c7fdcea1ac30cc61b2ab11546 (patch)
tree1fb435b5f5344caf05984d177777bfbd021d5bdf /indra/newview/llfloaterpreference.cpp
parent5f640843134a255536638df357fbbd2d3845858e (diff)
removing fullscreen functionality
reviewed by richard cc#212
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rw-r--r--indra/newview/llfloaterpreference.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index 2299cd719c..88339c55e8 100644
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -466,7 +466,7 @@ void LLFloaterPreference::apply()
}
}
- applyResolution();
+ //applyResolution();
}
void LLFloaterPreference::cancel()
@@ -1216,21 +1216,8 @@ void LLFloaterPreference::updateSliderText(LLSliderCtrl* ctrl, LLTextBox* text_b
void LLFloaterPreference::applyResolution()
{
gGL.flush();
-
- // Screen resolution
- S32 num_resolutions;
- LLWindow::LLWindowResolution* supported_resolutions =
- gViewerWindow->getWindow()->getSupportedResolutions(num_resolutions);
- S32 resIndex = getChild<LLComboBox>("fullscreen combo")->getCurrentIndex();
- if (resIndex == -1)
- {
- // use highest resolution if nothing selected
- resIndex = num_resolutions - 1;
- }
- gSavedSettings.setS32("FullScreenWidth", supported_resolutions[resIndex].mWidth);
- gSavedSettings.setS32("FullScreenHeight", supported_resolutions[resIndex].mHeight);
-
- gViewerWindow->requestResolutionUpdate(gSavedSettings.getBOOL("FullScreen"));
+
+ gViewerWindow->requestResolutionUpdate();
send_agent_update(TRUE);