diff options
author | marynate <mary.w.nate@gmail.com> | 2014-03-27 20:09:18 +0800 |
---|---|---|
committer | marynate <mary.w.nate@gmail.com> | 2014-03-27 23:16:03 +0800 |
commit | f6e6093ab966cd84687e258c7a69dc382f04bc35 (patch) | |
tree | 38be212dd50e5ce8ce54797b1a595c72ccae12ba /platform | |
parent | e20e3c9525c2f0d5bb95e85138a8d88a0088d439 (diff) |
Add display/resizable to project setting to prevent windwo from resizing
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/os_windows.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 801bb9332a..9871ecba8b 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -888,6 +888,10 @@ void OS_Windows::initialize(const VideoMode& p_desired,int p_video_driver,int p_ } else { dwExStyle=WS_EX_APPWINDOW | WS_EX_WINDOWEDGE; dwStyle=WS_OVERLAPPEDWINDOW; + if (!video_mode.resizable) { + dwStyle &= ~WS_THICKFRAME; + dwStyle &= ~WS_MAXIMIZEBOX; + } } AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle); |