diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-21 22:45:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:15 +0300 |
commit | e5521effc043cdf9d781816c0d72bd17830e34f8 (patch) | |
tree | 091d8fb497dfe236ccaac0cb6f0da88479a9e365 /src/graphics.cpp | |
parent | e1cacb5f675b782ba1cfee8906c78ec7793807c8 (diff) | |
download | manaplus-e5521effc043cdf9d781816c0d72bd17830e34f8.tar.gz manaplus-e5521effc043cdf9d781816c0d72bd17830e34f8.tar.bz2 manaplus-e5521effc043cdf9d781816c0d72bd17830e34f8.tar.xz manaplus-e5521effc043cdf9d781816c0d72bd17830e34f8.zip |
move SDL_SetVideoMode calls into graphicsmanager.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 188ad85d6..387566013 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -141,8 +141,11 @@ bool Graphics::setOpenGLMode() { #ifdef USE_OPENGL SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); - if (!(mWindow = SDL_SetVideoMode(mWidth, mHeight, mBpp, getOpenGLFlags()))) + if (!(mWindow = graphicsManager.createWindow(mWidth, mHeight, + mBpp, getOpenGLFlags()))) + { return false; + } #ifdef __APPLE__ if (mSync) |