summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/setup_visual.cpp9
-rw-r--r--src/gui/setup_visual.h2
2 files changed, 11 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()
diff --git a/src/gui/setup_visual.h b/src/gui/setup_visual.h
index 30ae18645..3c4c8a6d2 100644
--- a/src/gui/setup_visual.h
+++ b/src/gui/setup_visual.h
@@ -45,6 +45,8 @@ class Setup_Visual : public SetupTabScroll
SetupItemNames *mAmbientFxList;
SetupItemNames *mParticleList;
+
+ SetupItemNames *mVSyncList;
};
#endif