From 4f442567e7538346fda8476ef5629b14bd0d70f9 Mon Sep 17 00:00:00 2001 From: Daniel Bradshaw Date: Wed, 27 Jan 2010 00:11:01 +0000 Subject: Copy height/width/bpp cache setting from Graphics::setVideoMode to OpenGLGraphics::setVideoMode to stop Graphics::getWidth and getHeight returning 0 --- src/openglgraphics.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index 38d0fb8e..dd1f0c9c 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -59,6 +59,9 @@ bool OpenGLGraphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel) int displayFlags = SDL_ANYFORMAT | SDL_OPENGL; + mWidth = w; + mHeight = h; + mBpp = bpp; mFullscreen = fs; mHWAccel = hwaccel; -- cgit v1.2.3-70-g09d2