summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-22 11:59:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commit2480ea4cc668ff99007dd6fb8b44911eea5d5287 (patch)
treec8fc22a9612d30474cddd6d40da5269ffd7f55a5 /src/graphics.h
parent07390a4c8dcde85602c1a91d3773061d67d169ab (diff)
downloadmv-2480ea4cc668ff99007dd6fb8b44911eea5d5287.tar.gz
mv-2480ea4cc668ff99007dd6fb8b44911eea5d5287.tar.bz2
mv-2480ea4cc668ff99007dd6fb8b44911eea5d5287.tar.xz
mv-2480ea4cc668ff99007dd6fb8b44911eea5d5287.zip
store window size into rectangle.
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; }