summaryrefslogtreecommitdiff
path: root/core/os/os.h
diff options
context:
space:
mode:
authorsantouits <santouits@users.noreply.github.com>2017-10-24 22:35:28 +0300
committersantouits <santouits@users.noreply.github.com>2017-10-26 01:06:26 +0300
commit55fae24710eaaca482cb2adfcf3b81546e71414c (patch)
treeace2ae35f5c9de7c07a8e06f8d5dda0650545e91 /core/os/os.h
parent0268a95828bd0690aedadf0e2503f1e1f67bf81f (diff)
Fix x11 boot logo position in fullscreen and in maximized
Diffstat (limited to 'core/os/os.h')
-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 48effe99da..cd3840e049 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;
}
};