mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Default maxfps to 0, add ogl notices to comments
This commit is contained in:
parent
4cb7b61cc3
commit
c69f258e42
8
main.c
8
main.c
@ -583,10 +583,10 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
|
|||||||
"bpp=0\n"
|
"bpp=0\n"
|
||||||
"windowed=true\n"
|
"windowed=true\n"
|
||||||
"; real rendering rate, -1 = screen rate, 0 = unlimited, n = cap\n"
|
"; real rendering rate, -1 = screen rate, 0 = unlimited, n = cap\n"
|
||||||
"maxfps=120\n"
|
"maxfps=0\n"
|
||||||
"; vertical synchronization, enable if you get tearing\n"
|
"; vertical synchronization, enable if you get tearing (OpenGL only)\n"
|
||||||
"vsync=false\n"
|
"vsync=false\n"
|
||||||
"; scaling filter, nearest = sharp, linear = smooth\n"
|
"; scaling filter, nearest = sharp, linear = smooth (OpenGL only)\n"
|
||||||
"filter=nearest\n"
|
"filter=nearest\n"
|
||||||
"; automatic mouse sensitivity scaling\n"
|
"; automatic mouse sensitivity scaling\n"
|
||||||
"adjmouse=false\n"
|
"adjmouse=false\n"
|
||||||
@ -612,7 +612,7 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
|
|||||||
This->windowed = TRUE;
|
This->windowed = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
This->render.maxfps = GetPrivateProfileIntA("ddraw", "maxfps", 120, ini_path);
|
This->render.maxfps = GetPrivateProfileIntA("ddraw", "maxfps", 0, ini_path);
|
||||||
This->render.width = GetPrivateProfileIntA("ddraw", "width", 640, ini_path);
|
This->render.width = GetPrivateProfileIntA("ddraw", "width", 640, ini_path);
|
||||||
if(This->render.width < 640)
|
if(This->render.width < 640)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user