1
0
mirror of synced 2025-02-23 21:43:35 +01:00

- Daemon Bride: fix resolution not changing back

- Daemon Bride: fix resolution not changing back in certain cases when quitting (like from test menu)
This commit is contained in:
Nezarn 2020-05-01 09:39:31 +02:00
parent 2604c53bed
commit 9ff3e8a957
2 changed files with 1 additions and 5 deletions

View File

@ -328,7 +328,7 @@ LONG __stdcall ChangeDisplaySettingsAWrap(DEVMODEA *lpDevMode, DWORD dwflags)
lpDevMode->dmBitsPerPel = 32; lpDevMode->dmBitsPerPel = 32;
lpDevMode->dmDisplayFrequency = 60; lpDevMode->dmDisplayFrequency = 60;
return ChangeDisplaySettingsA(lpDevMode, dwflags); return ChangeDisplaySettingsA(lpDevMode, CDS_FULLSCREEN);
} }
BOOL __stdcall ExitWindowsExWrap(UINT uFlags, DWORD dwReason) BOOL __stdcall ExitWindowsExWrap(UINT uFlags, DWORD dwReason)

View File

@ -59,10 +59,6 @@ DWORD WINAPI QuitGameThread(__in LPVOID lpParameter)
{ {
FreeLibrary(blaster); FreeLibrary(blaster);
} }
if (GameDetect::currentGame == GameID::ExBoardGeneric || !ToBool(config["General"]["Windowed"]))
{
ChangeDisplaySettingsA(NULL, 0);
}
TerminateProcess(GetCurrentProcess(), 0); TerminateProcess(GetCurrentProcess(), 0);
#endif #endif
//ExitProcess(0); //ExitProcess(0);