From 826ead0896ab8d47ec032627e39874c859260736 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Feb 2012 23:58:54 +0300 Subject: Add vsync option. --- src/gui/setup_visual.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/setup_visual.cpp') 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() -- cgit v1.2.3-70-g09d2