summaryrefslogtreecommitdiff
path: root/src/sdlgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 22:45:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commite5521effc043cdf9d781816c0d72bd17830e34f8 (patch)
tree091d8fb497dfe236ccaac0cb6f0da88479a9e365 /src/sdlgraphics.cpp
parente1cacb5f675b782ba1cfee8906c78ec7793807c8 (diff)
downloadmanaverse-e5521effc043cdf9d781816c0d72bd17830e34f8.tar.gz
manaverse-e5521effc043cdf9d781816c0d72bd17830e34f8.tar.bz2
manaverse-e5521effc043cdf9d781816c0d72bd17830e34f8.tar.xz
manaverse-e5521effc043cdf9d781816c0d72bd17830e34f8.zip
move SDL_SetVideoMode calls into graphicsmanager.
Diffstat (limited to 'src/sdlgraphics.cpp')
-rw-r--r--src/sdlgraphics.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sdlgraphics.cpp b/src/sdlgraphics.cpp
index 75cb7883d..6bc196cd9 100644
--- a/src/sdlgraphics.cpp
+++ b/src/sdlgraphics.cpp
@@ -1138,8 +1138,11 @@ bool SDLGraphics::setVideoMode(const int w, const int h, const int bpp,
{
setMainFlags(w, h, bpp, fs, hwaccel, resize, noFrame);
- if (!(mWindow = SDL_SetVideoMode(w, h, bpp, getSoftwareFlags())))
+ if (!(mWindow = graphicsManager.createWindow(w, h, bpp,
+ getSoftwareFlags())))
+ {
return false;
+ }
mRect.w = static_cast<uint16_t>(mWindow->w);
mRect.h = static_cast<uint16_t>(mWindow->h);