Index: ddraw/glRenderer.cpp |
— | — | @@ -234,7 +234,7 @@ |
235 | 235 | case 2: // Windowed
|
236 | 236 | winstyle = GetWindowLongPtrA(This->hWnd, GWL_STYLE);
|
237 | 237 | winstyleex = GetWindowLongPtrA(This->hWnd, GWL_EXSTYLE);
|
238 | | - SetWindowLongPtrA(This->hWnd, GWL_EXSTYLE, winstyleex | WS_OVERLAPPEDWINDOW);
|
| 238 | + SetWindowLongPtrA(This->hWnd, GWL_EXSTYLE, winstyleex | WS_EX_APPWINDOW);
|
239 | 239 | SetWindowLongPtrA(This->hWnd, GWL_STYLE, (winstyle | WS_OVERLAPPEDWINDOW) & ~(WS_THICKFRAME | WS_MAXIMIZEBOX));
|
240 | 240 | ShowWindow(This->hWnd, SW_MAXIMIZE);
|
241 | 241 | break;
|
— | — | @@ -241,7 +241,7 @@ |
242 | 242 | case 3: // Windowed resizable
|
243 | 243 | winstyle = GetWindowLongPtrA(This->hWnd, GWL_STYLE);
|
244 | 244 | winstyleex = GetWindowLongPtrA(This->hWnd, GWL_EXSTYLE);
|
245 | | - SetWindowLongPtrA(This->hWnd, GWL_EXSTYLE, winstyleex | WS_OVERLAPPEDWINDOW);
|
| 245 | + SetWindowLongPtrA(This->hWnd, GWL_EXSTYLE, winstyleex | WS_EX_APPWINDOW);
|
246 | 246 | SetWindowLongPtrA(This->hWnd, GWL_STYLE, winstyle | WS_OVERLAPPEDWINDOW);
|
247 | 247 | ShowWindow(This->hWnd, SW_MAXIMIZE);
|
248 | 248 | break;
|
— | — | @@ -621,7 +621,7 @@ |
622 | 622 | case 2: // Windowed
|
623 | 623 | winstyle = GetWindowLongPtrA(newwnd, GWL_STYLE);
|
624 | 624 | winstyleex = GetWindowLongPtrA(newwnd, GWL_EXSTYLE);
|
625 | | - SetWindowLongPtrA(newwnd, GWL_EXSTYLE, winstyleex | WS_OVERLAPPEDWINDOW);
|
| 625 | + SetWindowLongPtrA(newwnd, GWL_EXSTYLE, winstyleex | WS_EX_APPWINDOW);
|
626 | 626 | SetWindowLongPtrA(newwnd, GWL_STYLE, (winstyle | WS_OVERLAPPEDWINDOW) & ~(WS_THICKFRAME | WS_MAXIMIZEBOX));
|
627 | 627 | ShowWindow(newwnd, SW_NORMAL);
|
628 | 628 | screenx = GetSystemMetrics(SM_CXSCREEN);
|
— | — | @@ -637,7 +637,7 @@ |
638 | 638 | case 3: // Windowed resizable
|
639 | 639 | winstyle = GetWindowLongPtrA(newwnd, GWL_STYLE);
|
640 | 640 | winstyleex = GetWindowLongPtrA(newwnd, GWL_EXSTYLE);
|
641 | | - SetWindowLongPtrA(newwnd, GWL_EXSTYLE, winstyleex | WS_OVERLAPPEDWINDOW);
|
| 641 | + SetWindowLongPtrA(newwnd, GWL_EXSTYLE, winstyleex | WS_EX_APPWINDOW);
|
642 | 642 | SetWindowLongPtrA(newwnd, GWL_STYLE, winstyle | WS_OVERLAPPEDWINDOW);
|
643 | 643 | ShowWindow(newwnd, SW_NORMAL);
|
644 | 644 | screenx = GetSystemMetrics(SM_CXSCREEN);
|