diff options
| author | Saracen | 2016-01-03 04:18:28 +0000 |
|---|---|---|
| committer | Saracen | 2016-03-12 16:38:12 +0000 |
| commit | 6eb4812317bc5207444ddbfe887d06969969b669 (patch) | |
| tree | 507901307887e4fb93d86917d79a552e264af042 /main | |
| parent | 8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a (diff) | |
| download | godot-6eb4812.tar.gz godot-6eb4812.tar.zst godot-6eb4812.zip | |
Borderless window support for the Win32 build. Default window position is now also centred.
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index c12b68cd0..9c98e3780 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -691,6 +691,8 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas video_mode.fullscreen=globals->get("display/fullscreen"); if (use_custom_res && globals->has("display/resizable")) video_mode.resizable=globals->get("display/resizable"); + if (use_custom_res && globals->has("display/borderless_window")) + video_mode.borderless_window = globals->get("display/borderless_window"); if (!force_res && use_custom_res && globals->has("display/test_width") && globals->has("display/test_height")) { int tw = globals->get("display/test_width"); @@ -706,6 +708,7 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas GLOBAL_DEF("display/height",video_mode.height); GLOBAL_DEF("display/fullscreen",video_mode.fullscreen); GLOBAL_DEF("display/resizable",video_mode.resizable); + GLOBAL_DEF("display/borderless_window", video_mode.borderless_window); GLOBAL_DEF("display/test_width",0); GLOBAL_DEF("display/test_height",0); OS::get_singleton()->_pixel_snap=GLOBAL_DEF("display/use_2d_pixel_snap",false); |
