summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup_video.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 2f1b81b1d..a3a82333e 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -345,6 +345,7 @@ Setup_Video::Setup_Video():
mAlphaSlider->setValue(mOpacity);
mAlphaSlider->setWidth(90);
+ mAlphaCacheCheckBox->setEnabled(!mOpenGLDropDown->getSelected());
mFpsLabel->setCaption(mFps > 0 ? toString(mFps) : _("None"));
mFpsLabel->setWidth(60);
@@ -385,6 +386,7 @@ Setup_Video::Setup_Video():
mDrawPathCheckBox->setActionEventId("drawPath1");
mShowJobCheckBox->setActionEventId("showJob");
mAlphaCacheCheckBox->setActionEventId("alphaCache");
+ mOpenGLDropDown->setActionEventId("opengl");
mModeList->addActionListener(this);
mCustomCursorCheckBox->addActionListener(this);
@@ -811,6 +813,11 @@ void Setup_Video::action(const gcn::ActionEvent &event)
mAltFpsSlider->setValue(mAltFps);
mAltFpsSlider->setEnabled(mAltFps > 0);
}
+ else if (id == "opengl")
+ {
+ bool isSoftware = mOpenGLDropDown->getSelected();
+ mAlphaCacheCheckBox->setEnabled(isSoftware);
+ }
}
void Setup_Video::externalUpdated()