add workaround for non responding window in cnc games
This commit is contained in:
parent
c2701f0d18
commit
3bd57f9ad1
1 changed files with 3 additions and 0 deletions
|
@ -875,6 +875,9 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
|||
|
||||
if (This->windowed)
|
||||
{
|
||||
MSG msg; // workaround for "Not Responding" window problem in cnc games
|
||||
PeekMessage(&msg, ddraw->hWnd, 0, 0, PM_NOREMOVE);
|
||||
|
||||
if (!This->border)
|
||||
{
|
||||
real_SetWindowLongA(This->hWnd, GWL_STYLE, GetWindowLong(This->hWnd, GWL_STYLE) & ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue