summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-23 00:09:05 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-23 00:09:05 +0300
commit2bcfc80fe18a7239e2eae5600e4ed118e038da32 (patch)
treecd5c771c6954ffc83584be712ef49dd1b09a385e /src/graphics.h
parent6494df1ca2a1c00b85828deb3b62f371338536fb (diff)
downloadmv-2bcfc80fe18a7239e2eae5600e4ed118e038da32.tar.gz
mv-2bcfc80fe18a7239e2eae5600e4ed118e038da32.tar.bz2
mv-2bcfc80fe18a7239e2eae5600e4ed118e038da32.tar.xz
mv-2bcfc80fe18a7239e2eae5600e4ed118e038da32.zip
OpenGL fix for mac version.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 5c3111e0a..96e5555b7 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -94,6 +94,15 @@ class Graphics : public gcn::SDLGraphics
virtual ~Graphics();
/**
+ * Sets whether vertical refresh syncing is enabled. Takes effect after
+ * the next call to setVideoMode(). Only implemented on MacOS for now.
+ */
+ void setSync(bool sync);
+
+ bool getSync() const
+ { return mSync; }
+
+ /**
* Try to create a window with the given settings.
*/
virtual bool setVideoMode(int w, int h, int bpp, bool fs,
@@ -328,6 +337,7 @@ class Graphics : public gcn::SDLGraphics
int mOldAlpha;
std::string mName;
int mStartFreeMem;
+ bool mSync;
};
extern Graphics *mainGraphics;