summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-20 15:48:08 +0100
committerGitHub <noreply@github.com>2017-11-20 15:48:08 +0100
commit450bdda97a933ed9081efa20bddc71ee0b8286c9 (patch)
treea17e49d24adfeab5fdfc64749ea38ccd1146eb52 /core
parent30a82e5e007dfa6eca0bc2021381beae57293b91 (diff)
parent55fae24710eaaca482cb2adfcf3b81546e71414c (diff)
Merge pull request #12387 from santouits/x1111
Fix x11 boot logo position in fullscreen and in maximized
Diffstat (limited to 'core')
-rw-r--r--core/os/os.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/os/os.h b/core/os/os.h
index 474cb60627..e48e5c6d70 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -90,13 +90,15 @@ public:
bool fullscreen;
bool resizable;
bool borderless_window;
+ bool maximized;
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, bool p_borderless_window = false) {
+ VideoMode(int p_width = 1024, int p_height = 600, bool p_fullscreen = false, bool p_resizable = true, bool p_borderless_window = false, bool p_maximized = false) {
width = p_width;
height = p_height;
fullscreen = p_fullscreen;
resizable = p_resizable;
borderless_window = p_borderless_window;
+ maximized = p_maximized;
}
};