1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

Default to 32 bpp

This commit is contained in:
Toni Spets 2010-11-08 21:47:49 +02:00
parent ac1d35c6dd
commit f9cc483e67

4
main.c
View File

@ -495,10 +495,10 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
{ {
This->render->height = 400; This->render->height = 400;
} }
This->render->bpp = GetPrivateProfileIntA("ddraw", "bpp", 24, ini_path); This->render->bpp = GetPrivateProfileIntA("ddraw", "bpp", 32, ini_path);
if(This->render->bpp != 16 && This->render->bpp != 24 && This->render->bpp != 32) if(This->render->bpp != 16 && This->render->bpp != 24 && This->render->bpp != 32)
{ {
This->render->bpp = 24; This->render->bpp = 32;
} }
GetPrivateProfileStringA("ddraw", "filter", tmp, tmp, sizeof(tmp), ini_path); GetPrivateProfileStringA("ddraw", "filter", tmp, tmp, sizeof(tmp), ini_path);