summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/graphics.h b/src/graphics.h
index cdd5b2e71..04234d415 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -105,8 +105,13 @@ class Graphics : public gcn::Graphics
*/
virtual ~Graphics();
- void setWindow(SDL_Window *const window)
- { mWindow = window; }
+ void setWindow(SDL_Window *const window,
+ const int width, const int height)
+ {
+ mWindow = window;
+ mRect.w = width;
+ mRect.h = height;
+ }
SDL_Window *getWindow() const
{ return mWindow; }