From 2480ea4cc668ff99007dd6fb8b44911eea5d5287 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Aug 2013 11:59:38 +0300 Subject: store window size into rectangle. --- src/graphics.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/graphics.h') 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; } -- cgit v1.2.3-70-g09d2