summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-30 17:03:58 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-30 19:53:08 +0300
commitc2351483dc7c918a592f2a1f52745c6552fb7d0c (patch)
tree3bea6a36d7133b32bb67b037aad115b7785e6550 /src/graphics.h
parent8e244c7e5b6c98b1a6e67d4e387a9c231a42b15c (diff)
downloadplus-c2351483dc7c918a592f2a1f52745c6552fb7d0c.tar.gz
plus-c2351483dc7c918a592f2a1f52745c6552fb7d0c.tar.bz2
plus-c2351483dc7c918a592f2a1f52745c6552fb7d0c.tar.xz
plus-c2351483dc7c918a592f2a1f52745c6552fb7d0c.zip
Add option for enable/disable window resize.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 7fab02cbb..497327b81 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -97,7 +97,7 @@ class Graphics : public gcn::SDLGraphics
* Try to create a window with the given settings.
*/
virtual bool setVideoMode(int w, int h, int bpp,
- bool fs, bool hwaccel);
+ bool fs, bool hwaccel, bool resize);
/**
* Set fullscreen mode.
@@ -107,7 +107,7 @@ class Graphics : public gcn::SDLGraphics
/**
* Resize the window to the specified size.
*/
- bool resize(int width, int height);
+ bool resizeScreen(int width, int height);
/**
* Blits an image onto the screen.
@@ -303,6 +303,7 @@ class Graphics : public gcn::SDLGraphics
SDL_Rect mRect;
bool mSecure;
int mOpenGL;
+ bool mEnableResize;
};
extern Graphics *mainGraphics;