summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorhurikhan <m4r10.5ch14ck@gmail.com>2015-01-11 01:07:23 +0800
committerhurikhan <m4r10.5ch14ck@gmail.com>2015-01-11 01:07:23 +0800
commita8e3c5c0b7fb202bcceb06b9373b5b6a4ff8f9b8 (patch)
treed41eb4947cbe781601e6d84ba365732bde12e95e /core/os
parent5d9de48d8d35961835135a7310840cdc9cbacb63 (diff)
First attempt of restoring the window at the old position
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/os/os.h b/core/os/os.h
index b86b122623..9de2e3556b 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -69,11 +69,12 @@ public:
};
struct VideoMode {
- int width,height;
+ int x,y,width,height;
bool fullscreen;
bool resizable;
float get_aspect() const { return (float)width/(float)height; }
- VideoMode(int p_width=640,int p_height=480,bool p_fullscreen=false, bool p_resizable = true) { width=p_width; height=p_height; fullscreen=p_fullscreen; resizable = p_resizable; }
+ VideoMode(int p_x=0, int p_y=0,int p_width=640,int p_height=480,bool p_fullscreen=false, bool p_resizable = true)
+ { x=p_x; y=p_y; width=p_width; height=p_height; fullscreen=p_fullscreen; resizable = p_resizable; }
};
protected:
friend class Main;