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

add (commented out) code to adjust the zone list size on first start

This commit is contained in:
FunkyFr3sh 2024-04-12 01:25:00 +02:00
parent 3089c8872d
commit 3a52a07ba6

View File

@ -1211,6 +1211,27 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
g_config.windowed = TRUE;
g_config.fullscreen = FALSE;
g_config.devmode = TRUE;
/*
if (!g_config.window_rect.right)
{
if (real_GetSystemMetrics(SM_CYSCREEN) >= 2160)
{
g_config.window_rect.right = 640 * 3;
g_config.window_rect.bottom = 480 * 3;
}
else if (real_GetSystemMetrics(SM_CYSCREEN) >= 1440)
{
g_config.window_rect.right = 640 * 2;
g_config.window_rect.bottom = 480 * 2;
}
else if (real_GetSystemMetrics(SM_CYSCREEN) >= 1080)
{
g_config.window_rect.right = (LONG)(640 * 1.5f);
g_config.window_rect.bottom = (LONG)(480 * 1.5f);
}
}
*/
}
dd_SetDisplayMode(640, 480, 16, SDM_MODE_SET_BY_GAME);