aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelgeneral.cpp')
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index 490e40d..e416401 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -74,6 +74,8 @@ BOOL LLPanelGeneral::postBuild()
74 74
75 childSetValue("language_combobox", gSavedSettings.getString("Language")); 75 childSetValue("language_combobox", gSavedSettings.getString("Language"));
76 76
77 childSetAction("reset_ui_size", onClickResetUISize, this);
78
77 return TRUE; 79 return TRUE;
78} 80}
79 81
@@ -112,3 +114,10 @@ void LLPanelGeneral::apply()
112void LLPanelGeneral::cancel() 114void LLPanelGeneral::cancel()
113{ 115{
114} 116}
117
118// static
119void LLPanelGeneral::onClickResetUISize(void* user_data)
120{
121 LLPanelGeneral* self = (LLPanelGeneral*)user_data;
122 self->childSetValue("ui_scale_slider", 1.0f);
123}