diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-18 18:07:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-18 18:07:37 +0300 |
commit | bc39b3c006145c6db41e7fcfac9da512944774f3 (patch) | |
tree | 805666c8c4b69f990d8242a338d091b0fa9cc952 /src | |
parent | a388dc3736be1d26dffc8badd109620d4ede63ee (diff) | |
download | mv-bc39b3c006145c6db41e7fcfac9da512944774f3.tar.gz mv-bc39b3c006145c6db41e7fcfac9da512944774f3.tar.bz2 mv-bc39b3c006145c6db41e7fcfac9da512944774f3.tar.xz mv-bc39b3c006145c6db41e7fcfac9da512944774f3.zip |
Disable software settings if software mode not enabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/setup_video.cpp | 7 |
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() |