diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-26 14:53:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-26 14:53:54 +0300 |
commit | c9fbec38d8a9da8ae234005849e31a35e23a8559 (patch) | |
tree | 9fba589a60bf9e9ced1853d3fda7a225d8f4ba7f /src/client.cpp | |
parent | d9c4b58680b7a1e1e5c69f3bffa548c6f4898723 (diff) | |
download | mv-c9fbec38d8a9da8ae234005849e31a35e23a8559.tar.gz mv-c9fbec38d8a9da8ae234005849e31a35e23a8559.tar.bz2 mv-c9fbec38d8a9da8ae234005849e31a35e23a8559.tar.xz mv-c9fbec38d8a9da8ae234005849e31a35e23a8559.zip |
Fix vsync setting on supported software/hardware.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 3 |
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(); |