make Carmageddon working again

This commit is contained in:
FunkyFr3sh 2017-11-21 16:20:04 +01:00
parent d03c82da27
commit b82cffb728
2 changed files with 8 additions and 10 deletions

View file

@ -482,6 +482,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
switch(uMsg)
{
case WM_SIZE:
return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */
case WM_MOVE:
{
if (ddraw->windowed && ddraw->windowed_init)
@ -495,13 +497,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
if (y != -32000)
WindowPosY = y;
}
break;
return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */
}
/* Carmageddon stops the main loop when it sees these, DefWindowProc is also bad */
//case WM_WINDOWPOSCHANGING:
//case WM_WINDOWPOSCHANGED:
// return 0;
/* C&C and RA really don't want to close down */
case WM_SYSCOMMAND: