From e5521effc043cdf9d781816c0d72bd17830e34f8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Aug 2013 22:45:39 +0300 Subject: move SDL_SetVideoMode calls into graphicsmanager. --- src/sdlgraphics.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sdlgraphics.cpp') 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(mWindow->w); mRect.h = static_cast(mWindow->h); -- cgit v1.2.3-60-g2f50