Use power-of-two texture in OpenGL, optimize rendering, add bpp selection into ini

This commit is contained in:
Toni Spets 2010-11-07 09:59:44 +02:00
parent d245af34bb
commit 4b3b799106
4 changed files with 39 additions and 25 deletions

5
main.c
View file

@ -454,6 +454,11 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
{
This->render->height = 400;
}
This->render->bpp = GetPrivateProfileIntA("ddraw", "bpp", 24, ini_path);
if(This->render->bpp != 16 && This->render->bpp != 24 && This->render->bpp != 32)
{
This->render->bpp = 24;
}
GetPrivateProfileStringA("ddraw", "filter", tmp, tmp, sizeof(tmp), ini_path);
if(tolower(tmp[0]) == 'l' || tolower(tmp[3]) == 'l')