Default to current mode bpp

This commit is contained in:
Toni Spets 2010-11-09 17:47:41 +02:00
parent 23cf107020
commit b6642edb67
2 changed files with 10 additions and 6 deletions

2
main.c
View file

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