From bdd822436fa50816f176a389e0964747ae42e8f6 Mon Sep 17 00:00:00 2001
From: Daniel Bradshaw <daniel+commits@the-cell.co.uk>
Date: Wed, 27 Jan 2010 00:11:01 +0000
Subject: [PATCH] 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 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index 38d0fb8..dd1f0c9 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;
 
-- 
1.6.3.3

