summaryrefslogtreecommitdiffstats
path: root/tools/platform/windows
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-03-10 10:58:15 -0800
committerGitHub <noreply@github.com>2021-03-10 10:58:15 -0800
commit6ef4054f8a8aea4ec61481057fa7e16aaecde6d7 (patch)
tree66edcae112faff7276c2595865463698bde277fd /tools/platform/windows
parent2765861cdc104e6104a31cf9e20800b8d1dfae26 (diff)
Swapchain resize and rename to `IDevice` (#1741)
* Swapchain resize * Fix.
Diffstat (limited to 'tools/platform/windows')
-rw-r--r--tools/platform/windows/win-window.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/platform/windows/win-window.cpp b/tools/platform/windows/win-window.cpp
index 0362a6839..8822a6393 100644
--- a/tools/platform/windows/win-window.cpp
+++ b/tools/platform/windows/win-window.cpp
@@ -310,7 +310,12 @@ public:
Win32PlatformWindow(const WindowDesc& desc)
{
DWORD windowExtendedStyle = 0;
- DWORD style = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU;
+ style = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU;
+ if (desc.style == WindowStyle::Default)
+ {
+ style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME;
+ }
+
HINSTANCE instance = (HINSTANCE)GetModuleHandle(0);
RECT windowRect;