mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-23 04:12:42 +00:00
added a minimize button to the window
This commit is contained in:
parent
bec4101854
commit
860610466a
1 changed files with 3 additions and 4 deletions
|
@ -454,17 +454,16 @@ static qbool GLW_CreateWindow( int width, int height, int colorbits )
|
||||||
r.bottom = height;
|
r.bottom = height;
|
||||||
|
|
||||||
int style = WS_VISIBLE | WS_CLIPCHILDREN;
|
int style = WS_VISIBLE | WS_CLIPCHILDREN;
|
||||||
int exstyle;
|
int exstyle = 0;
|
||||||
|
|
||||||
if ( glInfo.isFullscreen )
|
if ( glInfo.isFullscreen )
|
||||||
{
|
{
|
||||||
style |= WS_POPUP;
|
style |= WS_POPUP;
|
||||||
exstyle = WS_EX_TOPMOST;
|
exstyle |= WS_EX_TOPMOST;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
style |= WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_SYSMENU;
|
style |= WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX;
|
||||||
exstyle = 0;
|
|
||||||
AdjustWindowRect( &r, style, FALSE );
|
AdjustWindowRect( &r, style, FALSE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue