From 860610466a3f00598b33e6f0ff472065cbcf9ec3 Mon Sep 17 00:00:00 2001 From: myT Date: Wed, 14 Jun 2017 07:44:37 +0200 Subject: [PATCH] added a minimize button to the window --- code/win32/win_glimp.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/win32/win_glimp.cpp b/code/win32/win_glimp.cpp index d82ea92..c17f9e6 100644 --- a/code/win32/win_glimp.cpp +++ b/code/win32/win_glimp.cpp @@ -454,17 +454,16 @@ static qbool GLW_CreateWindow( int width, int height, int colorbits ) r.bottom = height; int style = WS_VISIBLE | WS_CLIPCHILDREN; - int exstyle; + int exstyle = 0; if ( glInfo.isFullscreen ) { style |= WS_POPUP; - exstyle = WS_EX_TOPMOST; + exstyle |= WS_EX_TOPMOST; } else { - style |= WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_SYSMENU; - exstyle = 0; + style |= WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX; AdjustWindowRect( &r, style, FALSE ); }