Use power-of-two texture in OpenGL, optimize rendering, add bpp selection into ini
This commit is contained in:
parent
d245af34bb
commit
4b3b799106
4 changed files with 39 additions and 25 deletions
5
main.c
5
main.c
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue