diff options
author | Daniel Bradshaw <daniel+commits@the-cell.co.uk> | 2010-01-27 00:11:01 +0000 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-01-27 01:48:16 +0100 |
commit | 4f442567e7538346fda8476ef5629b14bd0d70f9 (patch) | |
tree | 79f69a95a1b5effdc3d870848e0e82e9913907b1 | |
parent | 572ed6a1aa6c847e8764bddf2bb0d687ecf1a405 (diff) | |
download | mana-4f442567e7538346fda8476ef5629b14bd0d70f9.tar.gz mana-4f442567e7538346fda8476ef5629b14bd0d70f9.tar.bz2 mana-4f442567e7538346fda8476ef5629b14bd0d70f9.tar.xz mana-4f442567e7538346fda8476ef5629b14bd0d70f9.zip |
Copy height/width/bpp cache setting from Graphics::setVideoMode to OpenGLGraphics::setVideoMode to stop Graphics::getWidth and getHeight returning 0
-rw-r--r-- | src/openglgraphics.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |