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

set default size of primary surface to 1024x768

This commit is contained in:
FunkyFr3sh 2024-08-15 14:20:13 +02:00
parent 1ce5acd05d
commit aa357c044d

View File

@ -1420,8 +1420,8 @@ HRESULT dd_CreateSurface(
dst_surface->caps |= DDSCAPS_VISIBLE;
dst_surface->width = g_ddraw.width;
dst_surface->height = g_ddraw.height;
dst_surface->width = g_ddraw.width == 0 ? 1024 : g_ddraw.width;
dst_surface->height = g_ddraw.height == 0 ? 768 : g_ddraw.height;
}
else
{