mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
Revert "always enable fixnotresponding patch"
This reverts commit a80ffeb7aa350aea2ef45f3382bdefa1c2836a36.
This commit is contained in:
parent
3333539e34
commit
56488f9dac
1
inc/dd.h
1
inc/dd.h
@ -145,6 +145,7 @@ typedef struct CNCDDRAW
|
||||
BOOL nonexclusive;
|
||||
int fixchilds;
|
||||
BOOL fixwndprochook;
|
||||
BOOL fixnotresponding;
|
||||
BOOL flipclear;
|
||||
BOOL locktopleft;
|
||||
BOOL lock_surfaces;
|
||||
|
@ -40,6 +40,7 @@ void cfg_load()
|
||||
g_ddraw->fixwndprochook = cfg_get_bool("fixwndprochook", FALSE);
|
||||
g_ddraw->flipclear = cfg_get_bool("flipclear", FALSE);
|
||||
g_ddraw->novidmem = cfg_get_bool("novidmem", FALSE);
|
||||
g_ddraw->fixnotresponding = cfg_get_bool("fixnotresponding", FALSE);
|
||||
g_ddraw->locktopleft = cfg_get_bool("locktopleft", FALSE);
|
||||
g_ddraw->lock_surfaces = cfg_get_bool("lock_surfaces", FALSE);
|
||||
g_ddraw->releasealt = cfg_get_bool("releasealt", FALSE);
|
||||
@ -365,6 +366,7 @@ static void cfg_create_ini()
|
||||
"fixpitch=true\n"
|
||||
"fixwndprochook=false\n"
|
||||
"novidmem=false\n"
|
||||
"fixnotresponding=false\n"
|
||||
"locktopleft=false\n"
|
||||
"lock_surfaces=false\n"
|
||||
"releasealt=false\n"
|
||||
@ -735,6 +737,7 @@ static void cfg_create_ini()
|
||||
"; Economic War\n"
|
||||
"[EcoW]\n"
|
||||
"maxgameticks=60\n"
|
||||
"fixnotresponding=true\n"
|
||||
"\n"
|
||||
"; Fallout\n"
|
||||
"[falloutw]\n"
|
||||
|
8
src/dd.c
8
src/dd.c
@ -711,12 +711,8 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
||||
|
||||
if (g_ddraw->windowed)
|
||||
{
|
||||
/* workaround for "Not Responding" window problem in cnc games */
|
||||
if (GetCurrentThreadId() == g_ddraw->gui_thread_id)
|
||||
{
|
||||
MSG msg;
|
||||
PeekMessage(&msg, g_ddraw->hwnd, 0, 0, PM_NOREMOVE);
|
||||
}
|
||||
MSG msg; /* workaround for "Not Responding" window problem in cnc games */
|
||||
PeekMessage(&msg, g_ddraw->hwnd, 0, 0, PM_NOREMOVE);
|
||||
|
||||
if (!border)
|
||||
{
|
||||
|
@ -940,10 +940,9 @@ HRESULT dds_Lock(
|
||||
|
||||
dbg_dump_dds_lock_flags(dwFlags);
|
||||
|
||||
/* workaround for "Not Responding" window problem */
|
||||
if (g_ddraw && g_ddraw->windowed && GetCurrentThreadId() == g_ddraw->gui_thread_id)
|
||||
if (g_ddraw && g_ddraw->fixnotresponding)
|
||||
{
|
||||
MSG msg;
|
||||
MSG msg; /* workaround for "Not Responding" window problem */
|
||||
PeekMessage(&msg, g_ddraw->hwnd, 0, 0, PM_NOREMOVE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user