diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-11-02 10:16:15 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-11-02 10:16:15 -0300 |
commit | 738eb2c1a88d441eacc4149ce8f1c12a90267191 (patch) | |
tree | fa97e8e996e12d3de239d62c0116ec4d1cdc2e74 | |
parent | 71aa6075b26e2addcab56d14dcf31d05eed0fa1c (diff) | |
parent | 8b8e26c0bdc1c0925eaa7e65dc2e98452393af17 (diff) |
Merge pull request #839 from grabiller/radfac#005
Implement Windows fullscreen mode without video mode change.
-rw-r--r-- | platform/windows/os_windows.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 81a96ccb13..7c2385e103 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -982,8 +982,11 @@ void OS_Windows::initialize(const VideoMode& p_desired,int p_video_driver,int p_ DEVMODE current; memset(¤t,0,sizeof(current)); EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, ¤t); + + WindowRect.right = current.dmPelsWidth; + WindowRect.bottom = current.dmPelsHeight; - DEVMODE dmScreenSettings; +/* DEVMODE dmScreenSettings; memset(&dmScreenSettings,0,sizeof(dmScreenSettings)); dmScreenSettings.dmSize=sizeof(dmScreenSettings); dmScreenSettings.dmPelsWidth = video_mode.width; @@ -995,7 +998,7 @@ void OS_Windows::initialize(const VideoMode& p_desired,int p_video_driver,int p_ if (err!=DISP_CHANGE_SUCCESSFUL) { video_mode.fullscreen=false; - } + }*/ } DWORD dwExStyle; |