diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpaneldisplay.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp index 14e295c..e3da12a 100644 --- a/linden/indra/newview/llpaneldisplay.cpp +++ b/linden/indra/newview/llpaneldisplay.cpp | |||
@@ -318,6 +318,9 @@ BOOL LLPanelDisplay::postBuild() | |||
318 | mLightingText = getChild<LLTextBox>("LightingDetailText"); | 318 | mLightingText = getChild<LLTextBox>("LightingDetailText"); |
319 | mMeshDetailText = getChild<LLTextBox>("MeshDetailText"); | 319 | mMeshDetailText = getChild<LLTextBox>("MeshDetailText"); |
320 | 320 | ||
321 | childSetValue("toggle_windlight_control", gSavedSettings.getBOOL("EnableWindlightRemote")); | ||
322 | mWLControl = gSavedSettings.getBOOL("EnableWindlightRemote"); | ||
323 | |||
321 | refresh(); | 324 | refresh(); |
322 | 325 | ||
323 | return TRUE; | 326 | return TRUE; |
@@ -700,6 +703,8 @@ void LLPanelDisplay::cancel() | |||
700 | gSavedSettings.setU32("WLSkyDetail", mSkyLOD); | 703 | gSavedSettings.setU32("WLSkyDetail", mSkyLOD); |
701 | gSavedSettings.setS32("RenderMaxPartCount", mParticleCount); | 704 | gSavedSettings.setS32("RenderMaxPartCount", mParticleCount); |
702 | gSavedSettings.setS32("RenderGlowResolutionPow", mPostProcess); | 705 | gSavedSettings.setS32("RenderGlowResolutionPow", mPostProcess); |
706 | |||
707 | gSavedSettings.setBOOL("EnableWindlightRemote", mWLControl); | ||
703 | } | 708 | } |
704 | 709 | ||
705 | void LLPanelDisplay::apply() | 710 | void LLPanelDisplay::apply() |
@@ -711,6 +716,8 @@ void LLPanelDisplay::apply() | |||
711 | { | 716 | { |
712 | applyWindowSize(); | 717 | applyWindowSize(); |
713 | } | 718 | } |
719 | |||
720 | gSavedSettings.setBOOL("EnableWindlightRemote", childGetValue("toggle_windlight_control").asBoolean()); | ||
714 | } | 721 | } |
715 | 722 | ||
716 | void LLPanelDisplay::onChangeQuality(LLUICtrl *ctrl, void *data) | 723 | void LLPanelDisplay::onChangeQuality(LLUICtrl *ctrl, void *data) |