summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
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.cpp
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.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)
{