summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
commit92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch)
tree18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/setup_video.cpp
parent3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff)
downloadmana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.gz
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.bz2
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.xz
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.zip
Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for
gcn::TabbedArea usage)
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index cd1507a7..d0c3d5e3 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -156,7 +156,7 @@ Setup_Video::Setup_Video():
mFpsField->setEnabled(mFps > 0);
mFpsSlider->setValue(mFps);
mFpsSlider->setEnabled(mFps > 0);
- mFpsCheckBox->setMarked(mFps > 0);
+ mFpsCheckBox->setSelected(mFps > 0);
mCustomCursorCheckBox->setActionEventId("customcursor");
mAlphaSlider->setActionEventId("guialpha");
@@ -244,7 +244,7 @@ Setup_Video::~Setup_Video()
void Setup_Video::apply()
{
// Full screen changes
- bool fullscreen = mFsCheckBox->isMarked();
+ bool fullscreen = mFsCheckBox->isSelected();
if (fullscreen != (config.getValue("screen", 0) == 1))
{
// checks for opengl usage
@@ -271,9 +271,9 @@ void Setup_Video::apply()
}
// OpenGL change
- if (mOpenGLCheckBox->isMarked() != mOpenGLEnabled)
+ if (mOpenGLCheckBox->isSelected() != mOpenGLEnabled)
{
- config.setValue("opengl", mOpenGLCheckBox->isMarked() ? 1 : 0);
+ config.setValue("opengl", mOpenGLCheckBox->isSelected() ? 1 : 0);
// OpenGL can currently only be changed by restarting, notify user.
new OkDialog("Changing OpenGL",
@@ -314,9 +314,9 @@ Setup_Video::updateSlider(gcn::Slider *slider, gcn::TextField *field,
void Setup_Video::cancel()
{
- mFsCheckBox->setMarked(mFullScreenEnabled);
- mOpenGLCheckBox->setMarked(mOpenGLEnabled);
- mCustomCursorCheckBox->setMarked(mCustomCursorEnabled);
+ mFsCheckBox->setSelected(mFullScreenEnabled);
+ mOpenGLCheckBox->setSelected(mOpenGLEnabled);
+ mCustomCursorCheckBox->setSelected(mCustomCursorEnabled);
mAlphaSlider->setValue(mOpacity);
mOverlayDetailSlider->setValue(mOverlayDetail);
@@ -340,7 +340,7 @@ void Setup_Video::action(const gcn::ActionEvent &event)
else if (event.getId() == "customcursor")
{
config.setValue("customcursor",
- mCustomCursorCheckBox->isMarked() ? 1 : 0);
+ mCustomCursorCheckBox->isSelected() ? 1 : 0);
}
else if (event.getId() == "fpslimitslider")
{
@@ -378,7 +378,7 @@ void Setup_Video::action(const gcn::ActionEvent &event)
}
else if (event.getId() == "fpslimitcheckbox")
{
- if (mFpsCheckBox->isMarked())
+ if (mFpsCheckBox->isSelected())
{
mFps = (int) mFpsSlider->getValue();
}