1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add temporary hack for testing - Fixes bad winodw size

This commit is contained in:
FunkyFr3sh 2024-03-17 23:36:27 +01:00
parent 38c0f9e989
commit f6f3c762e6

View File

@ -446,6 +446,14 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ALLCHILDREN);
}
static BOOL initialized = FALSE;
if (!initialized && LOWORD(lParam) == 503 && HIWORD(lParam) == 309)
{
initialized = TRUE;
dd_SetDisplayMode(513, 319, 32, 0);
}
return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */
}
case WM_MOVE: