Borderless window support for the Win32 build. Default window position is now also centred.
This commit is contained in:
parent
8b1dcbfe4d
commit
6eb4812317
6 changed files with 36 additions and 3 deletions
|
|
@ -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; }
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue