mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
fix window position default values
This commit is contained in:
parent
4294e29f36
commit
dc49826eaa
4
main.c
4
main.c
@ -806,8 +806,8 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
|
|||||||
This->render.maxfps = GetPrivateProfileIntA("ddraw", "max_fps", 120, SettingsIniPath);
|
This->render.maxfps = GetPrivateProfileIntA("ddraw", "max_fps", 120, SettingsIniPath);
|
||||||
This->render.width = GetPrivateProfileIntA("ddraw", "width", 0, SettingsIniPath);
|
This->render.width = GetPrivateProfileIntA("ddraw", "width", 0, SettingsIniPath);
|
||||||
This->render.height = GetPrivateProfileIntA("ddraw", "height", 0, SettingsIniPath);
|
This->render.height = GetPrivateProfileIntA("ddraw", "height", 0, SettingsIniPath);
|
||||||
WindowPosX = GetPrivateProfileIntA("ddraw", "posX", 0, SettingsIniPath);
|
WindowPosX = GetPrivateProfileIntA("ddraw", "posX", -1, SettingsIniPath);
|
||||||
WindowPosY = GetPrivateProfileIntA("ddraw", "posY", 0, SettingsIniPath);
|
WindowPosY = GetPrivateProfileIntA("ddraw", "posY", -1, SettingsIniPath);
|
||||||
|
|
||||||
This->render.bpp = GetPrivateProfileIntA("ddraw", "bpp", 32, SettingsIniPath);
|
This->render.bpp = GetPrivateProfileIntA("ddraw", "bpp", 32, SettingsIniPath);
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user