From 2bcfc80fe18a7239e2eae5600e4ed118e038da32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 May 2012 00:09:05 +0300 Subject: OpenGL fix for mac version. --- src/graphics.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index 5c3111e0a..96e5555b7 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -93,6 +93,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. */ @@ -328,6 +337,7 @@ class Graphics : public gcn::SDLGraphics int mOldAlpha; std::string mName; int mStartFreeMem; + bool mSync; }; extern Graphics *mainGraphics; -- cgit v1.2.3-70-g09d2