summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-30 22:59:30 +0300
commit54a54eb5317650fc3306d200517bcc48bb7f1d9c (patch)
treec9531ffffa2b8a97c134a0d7d0ad14de16da3dc9 /src/gui/widgets/tabs/setup_video.cpp
parent679f626e7e937a55b315d58fd3c3e23077e91ede (diff)
downloadmv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.gz
mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.bz2
mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.tar.xz
mv-54a54eb5317650fc3306d200517bcc48bb7f1d9c.zip
fix styled drawing after update.
Diffstat (limited to 'src/gui/widgets/tabs/setup_video.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_video.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp
index 2eb0e4ef0..d6532fb86 100644
--- a/src/gui/widgets/tabs/setup_video.cpp
+++ b/src/gui/widgets/tabs/setup_video.cpp
@@ -236,10 +236,10 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
mAltFpsLabel->setCaption(_("Alt FPS limit: ") + (mAltFps > 0
? toString(mAltFps) : _("None")));
mAltFpsLabel->setWidth(150);
- mFpsSlider->setValue(mFps);
mFpsSlider->setEnabled(mFps > 0);
- mAltFpsSlider->setValue(mAltFps);
+ mFpsSlider->setValue2(mFps);
mAltFpsSlider->setEnabled(mAltFps > 0);
+ mAltFpsSlider->setValue2(mAltFps);
mFpsCheckBox->setSelected(mFps > 0);
// Pre-select the current video mode.
@@ -413,10 +413,10 @@ void Setup_Video::cancel()
mFsCheckBox->setSelected(mFullScreenEnabled);
mOpenGLDropDown->setSelected(renderToIndex[mOpenGLEnabled]);
mCustomCursorCheckBox->setSelected(mCustomCursorEnabled);
- mFpsSlider->setValue(mFps);
mFpsSlider->setEnabled(mFps > 0);
- mAltFpsSlider->setValue(mAltFps);
+ mFpsSlider->setValue2(mFps);
mAltFpsSlider->setEnabled(mAltFps > 0);
+ mAltFpsSlider->setValue2(mAltFps);
mFpsLabel->setCaption(mFpsCheckBox->isSelected()
// TRANSLATORS: video settings label
? toString(mFps) : _("None"));
@@ -535,8 +535,8 @@ void Setup_Video::action(const gcn::ActionEvent &event)
const std::string text = mFps > 0 ? toString(mFps) : _("None");
mFpsLabel->setCaption(text);
- mFpsSlider->setValue(mFps);
mFpsSlider->setEnabled(mFps > 0);
+ mFpsSlider->setValue2(mFps);
}
else if (id == "altfpslimitslider")
{
@@ -549,8 +549,8 @@ void Setup_Video::action(const gcn::ActionEvent &event)
// TRANSLATORS: video settings label
mAltFpsLabel->setCaption(_("Alt FPS limit: ") + text);
- mAltFpsSlider->setValue(mAltFps);
mAltFpsSlider->setEnabled(mAltFps > 0);
+ mAltFpsSlider->setValue2(mAltFps);
}
else if (id == "enableresize")
{