mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
add temporary hack for testing - Fixes bad winodw size
This commit is contained in:
parent
38c0f9e989
commit
f6f3c762e6
@ -446,6 +446,14 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||||||
RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_ALLCHILDREN);
|
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 */
|
return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */
|
||||||
}
|
}
|
||||||
case WM_MOVE:
|
case WM_MOVE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user