From cb481f513b9e495f6b18c580071bbc2f2b5701be Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Thu, 10 Aug 2023 11:33:19 +0200 Subject: [PATCH] revert change --- src/dd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dd.c b/src/dd.c index 7789e43..2eb5e73 100644 --- a/src/dd.c +++ b/src/dd.c @@ -758,6 +758,14 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl real_SetWindowLongA(g_ddraw->hwnd, GWL_EXSTYLE, exstyle & ~(WS_EX_TOOLWINDOW)); } + if (g_ddraw->wine) + { + real_SetWindowLongA( + g_ddraw->hwnd, + GWL_STYLE, + (real_GetWindowLongA(g_ddraw->hwnd, GWL_STYLE) | WS_MINIMIZEBOX) & ~(WS_MAXIMIZEBOX | WS_THICKFRAME)); + } + /* center the window with correct dimensions */ int cy = g_ddraw->mode.dmPelsWidth ? g_ddraw->mode.dmPelsWidth : g_ddraw->render.width; int cx = g_ddraw->mode.dmPelsHeight ? g_ddraw->mode.dmPelsHeight : g_ddraw->render.height;