summaryrefslogtreecommitdiff
path: root/src/openglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r--src/openglgraphics.cpp3
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;