mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-14 22:03:27 +01:00
use proper window size
This commit is contained in:
parent
f08a7e6688
commit
05c1b2da67
2
src/dd.c
2
src/dd.c
@ -1229,7 +1229,7 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
|
||||
g_config.devmode = TRUE;
|
||||
g_config.fullscreen = FALSE;
|
||||
g_config.windowed = TRUE;
|
||||
dd_SetDisplayMode(513, 319, 32, 8);
|
||||
dd_SetDisplayMode(515, 325, 32, 8);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -451,7 +451,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
if (!initialized && (LOWORD(lParam) >= 460 && LOWORD(lParam) <= 540) && HIWORD(lParam) < 350 && GetMenu(g_ddraw->hwnd))
|
||||
{
|
||||
initialized = TRUE;
|
||||
dd_SetDisplayMode(513, 319, 32, 0);
|
||||
dd_SetDisplayMode(515, 325, 32, 0);
|
||||
}
|
||||
|
||||
return DefWindowProc(hWnd, uMsg, wParam, lParam); /* Carmageddon fix */
|
||||
|
Loading…
x
Reference in New Issue
Block a user