summaryrefslogtreecommitdiff
path: root/core/os/os.h
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2016-01-03 04:18:28 +0000
committerSaracen <SaracenOne@gmail.com>2016-03-12 16:38:12 +0000
commit6eb4812317bc5207444ddbfe887d06969969b669 (patch)
tree507901307887e4fb93d86917d79a552e264af042 /core/os/os.h
parent8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a (diff)
Borderless window support for the Win32 build. Default window position is now also centred.
Diffstat (limited to 'core/os/os.h')
-rw-r--r--core/os/os.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/os/os.h b/core/os/os.h
index 65ce44465b..73726feb37 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -75,8 +75,9 @@ public:
int width,height;
bool fullscreen;
bool resizable;
+ bool borderless_window;
float get_aspect() const { return (float)width/(float)height; }
- VideoMode(int p_width=1024,int p_height=600,bool p_fullscreen=false, bool p_resizable = true) {width=p_width; height=p_height; fullscreen=p_fullscreen; resizable = p_resizable; }
+ VideoMode(int p_width=1024,int p_height=600,bool p_fullscreen=false, bool p_resizable = true,bool p_borderless_window=false) { width=p_width; height=p_height; fullscreen=p_fullscreen; resizable = p_resizable; borderless_window=p_borderless_window; }
};
protected:
friend class Main;
@@ -172,6 +173,8 @@ public:
virtual void set_window_maximized(bool p_enabled) {}
virtual bool is_window_maximized() const { return true; }
+ virtual void set_borderless_window(int p_borderless) {}
+ virtual bool get_borderless_window() { return 0; }