From c2351483dc7c918a592f2a1f52745c6552fb7d0c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jan 2012 17:03:58 +0300 Subject: Add option for enable/disable window resize. --- src/graphics.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/graphics.h') 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; -- cgit v1.2.3-60-g2f50