From 6ef4054f8a8aea4ec61481057fa7e16aaecde6d7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 10 Mar 2021 10:58:15 -0800 Subject: Swapchain resize and rename to `IDevice` (#1741) * Swapchain resize * Fix. --- tools/platform/windows/win-window.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/platform/windows') 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; -- cgit v1.2.3