summaryrefslogtreecommitdiff
path: root/core/os/os.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-03-12 17:40:56 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-03-12 17:40:56 +0100
commit082092267a1ee41600b6d21a42f2d0cfc63e4b3e (patch)
tree507901307887e4fb93d86917d79a552e264af042 /core/os/os.h
parent8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a (diff)
parent6eb4812317bc5207444ddbfe887d06969969b669 (diff)
Merge pull request #3215 from SaracenOne/borderless_windows
Borderless windows
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; }