From bc39b3c006145c6db41e7fcfac9da512944774f3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Apr 2011 18:07:37 +0300 Subject: Disable software settings if software mode not enabled. --- src/gui/setup_video.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/setup_video.cpp') 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() -- cgit v1.2.3-60-g2f50