From e8f92c8a476c35f76212ccaccbbb55901a49058e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Feb 2012 19:42:02 +0300 Subject: Add "no frame" option to hide window frame. Disabled by default. --- src/graphics.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index 497327b81..d1409be8a 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -96,8 +96,8 @@ 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 resize); + virtual bool setVideoMode(int w, int h, int bpp, bool fs, + bool hwaccel, bool resize, bool noFrame); /** * Set fullscreen mode. @@ -287,6 +287,9 @@ class Graphics : public gcn::SDLGraphics int getOpenGL() { return mOpenGL; } + void setNoFrame(bool n) + { mNoFrame = n; } + int mWidth; int mHeight; @@ -304,6 +307,7 @@ class Graphics : public gcn::SDLGraphics bool mSecure; int mOpenGL; bool mEnableResize; + bool mNoFrame; }; extern Graphics *mainGraphics; -- cgit v1.2.3-70-g09d2