summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-26 14:53:54 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-26 14:53:54 +0300
commitc9fbec38d8a9da8ae234005849e31a35e23a8559 (patch)
tree9fba589a60bf9e9ced1853d3fda7a225d8f4ba7f /src/client.cpp
parentd9c4b58680b7a1e1e5c69f3bffa548c6f4898723 (diff)
downloadmanaplus-c9fbec38d8a9da8ae234005849e31a35e23a8559.tar.gz
manaplus-c9fbec38d8a9da8ae234005849e31a35e23a8559.tar.bz2
manaplus-c9fbec38d8a9da8ae234005849e31a35e23a8559.tar.xz
manaplus-c9fbec38d8a9da8ae234005849e31a35e23a8559.zip
Fix vsync setting on supported software/hardware.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index b51d8cdac..c871b2372 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -548,6 +548,8 @@ void Client::gameInit()
const bool enableResize = config.getBoolValue("enableresize");
const bool noFrame = config.getBoolValue("noframe");
+ applyVSync();
+
// Try to set the desired video mode
if (!mainGraphics->setVideoMode(width, height, bpp,
fullscreen, hwaccel, enableResize, noFrame))
@@ -579,7 +581,6 @@ void Client::gameInit()
applyGrabMode();
applyGamma();
- applyVSync();
// Initialize for drawing
mainGraphics->_beginDraw();