summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
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;