summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-25 16:44:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-25 16:44:09 +0300
commit8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696 (patch)
treef8bbdafae791d259855fe514ca9dc15a890551da /src
parent269ee1e98ef1645957276ba4160c96db307f1771 (diff)
downloadmanaplus-8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696.tar.gz
manaplus-8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696.tar.bz2
manaplus-8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696.tar.xz
manaplus-8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696.zip
Fix cache option enabled/disabled state.
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup_video.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index a838befef..9c84dd9d7 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -345,7 +345,7 @@ Setup_Video::Setup_Video():
mAlphaSlider->setValue(mOpacity);
mAlphaSlider->setWidth(90);
- mAlphaCacheCheckBox->setEnabled(!mOpenGLDropDown->getSelected());
+ mAlphaCacheCheckBox->setEnabled(mOpenGLDropDown->getSelected() == 0);
mFpsLabel->setCaption(mFps > 0 ? toString(mFps) : _("None"));
mFpsLabel->setWidth(60);
@@ -678,6 +678,7 @@ void Setup_Video::cancel()
config.setValue("hwaccel", mHwAccelEnabled);
config.setValue("showpickupchat", mPickupChatEnabled);
config.setValue("showpickupparticle", mPickupParticleEnabled);
+ mAlphaCacheCheckBox->setEnabled(mOpenGLDropDown->getSelected() == 0);
}
void Setup_Video::action(const gcn::ActionEvent &event)