aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index 47bc60e..16da49d 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -109,6 +109,7 @@ LLPanelGeneral::LLPanelGeneral()
109BOOL LLPanelGeneral::postBuild() 109BOOL LLPanelGeneral::postBuild()
110{ 110{
111 childSetCommitCallback("fade_out_combobox", set_render_name_fade_out); 111 childSetCommitCallback("fade_out_combobox", set_render_name_fade_out);
112 childSetAction("reset_ui_size", onClickResetUISize, this);
112 113
113 std::string region_name_prompt = getString("region_name_prompt"); 114 std::string region_name_prompt = getString("region_name_prompt");
114 115
@@ -242,3 +243,10 @@ void LLPanelGeneral::clickShowStartLocation(LLUICtrl*, void* user_data)
242{ 243{
243 LLPanelLogin::refreshLocation( false ); // in case LLPanelLogin is visible 244 LLPanelLogin::refreshLocation( false ); // in case LLPanelLogin is visible
244} 245}
246
247// static
248void LLPanelGeneral::onClickResetUISize(void* user_data)
249{
250 gSavedSettings.setF32("UIScaleFactor", 1.0f);
251 gViewerWindow->reshape(gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight());
252} \ No newline at end of file