summaryrefslogtreecommitdiff
path: root/src/gui/setup_visual.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-21 23:58:54 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-21 23:58:54 +0300
commit826ead0896ab8d47ec032627e39874c859260736 (patch)
treecbf9272934382f287fe3acbe51ad80bcb97ec405 /src/gui/setup_visual.cpp
parentdf1e9664e176377cb8f9501d1b828ee42cd8e8f8 (diff)
downloadmv-826ead0896ab8d47ec032627e39874c859260736.tar.gz
mv-826ead0896ab8d47ec032627e39874c859260736.tar.bz2
mv-826ead0896ab8d47ec032627e39874c859260736.tar.xz
mv-826ead0896ab8d47ec032627e39874c859260736.zip
Add vsync option.
Diffstat (limited to 'src/gui/setup_visual.cpp')
-rw-r--r--src/gui/setup_visual.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/setup_visual.cpp b/src/gui/setup_visual.cpp
index 22df1ffa7..454a2c3f6 100644
--- a/src/gui/setup_visual.cpp
+++ b/src/gui/setup_visual.cpp
@@ -94,6 +94,13 @@ Setup_Visual::Setup_Visual()
new SetupItemSlider(_("Gamma"), "", "gamma",
this, "gammeEvent", 1, 20, 350, true);
+ mVSyncList = new SetupItemNames();
+ mVSyncList->push_back(_("default"));
+ mVSyncList->push_back(_("off"));
+ mVSyncList->push_back(_("on"));
+ new SetupItemSlider2(_("Vsync"), "", "vsync", this,
+ "vsyncEvent", 0, 2, mVSyncList);
+
setDimension(gcn::Rectangle(0, 0, 550, 350));
}
@@ -105,6 +112,8 @@ Setup_Visual::~Setup_Visual()
mAmbientFxList = nullptr;
delete mParticleList;
mParticleList = nullptr;
+ delete mVSyncList;
+ mVSyncList = nullptr;
}
void Setup_Visual::apply()