summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index b8d34aad4..d94963f06 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -34,6 +34,12 @@
#include <guichan/sdl/sdlpixel.hpp>
+#ifdef USE_OPENGL
+#ifdef __APPLE__
+#include <OpenGL/OpenGL.h>
+#endif
+#endif
+
#include <SDL_gfxBlitFunc.h>
#include "debug.h"
@@ -68,7 +74,8 @@ Graphics::Graphics() :
mOldPixel(0),
mOldAlpha(0),
mName("Software"),
- mStartFreeMem(0)
+ mStartFreeMem(0),
+ mSync(false)
{
mRect.x = 0;
mRect.y = 0;
@@ -81,6 +88,11 @@ Graphics::~Graphics()
_endDraw();
}
+void Graphics::setSync(bool sync)
+{
+ mSync = sync;
+}
+
void Graphics::setMainFlags(int w, int h, int bpp, bool fs,
bool hwaccel, bool resize, bool noFrame)
{