1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

fix window position default values

This commit is contained in:
FunkyFr3sh 2017-11-15 01:56:06 +01:00
parent 4294e29f36
commit dc49826eaa
2 changed files with 2 additions and 2 deletions

BIN
ddraw.dll

Binary file not shown.

4
main.c
View File

@ -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.width = GetPrivateProfileIntA("ddraw", "width", 0, SettingsIniPath);
This->render.height = GetPrivateProfileIntA("ddraw", "height", 0, SettingsIniPath);
WindowPosX = GetPrivateProfileIntA("ddraw", "posX", 0, SettingsIniPath);
WindowPosY = GetPrivateProfileIntA("ddraw", "posY", 0, SettingsIniPath);
WindowPosX = GetPrivateProfileIntA("ddraw", "posX", -1, SettingsIniPath);
WindowPosY = GetPrivateProfileIntA("ddraw", "posY", -1, SettingsIniPath);
This->render.bpp = GetPrivateProfileIntA("ddraw", "bpp", 32, SettingsIniPath);
if (This->render.bpp != 16 && This->render.bpp != 24 && This->render.bpp != 32)