mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
disable workaround for cases where PeekMessage was not hooked
This commit is contained in:
parent
b1e7cfe5b4
commit
eb5957008f
3
src/dd.c
3
src/dd.c
@ -1024,7 +1024,8 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
|||||||
if (g_config.remove_menu && GetMenu(g_ddraw.hwnd))
|
if (g_config.remove_menu && GetMenu(g_ddraw.hwnd))
|
||||||
SetMenu(g_ddraw.hwnd, NULL);
|
SetMenu(g_ddraw.hwnd, NULL);
|
||||||
|
|
||||||
if (g_ddraw.last_msg_pull_tick + 1000 < timeGetTime() &&
|
if (g_ddraw.last_msg_pull_tick &&
|
||||||
|
g_ddraw.last_msg_pull_tick + 1000 < timeGetTime() &&
|
||||||
GetCurrentThreadId() == g_ddraw.gui_thread_id &&
|
GetCurrentThreadId() == g_ddraw.gui_thread_id &&
|
||||||
!IsWine())
|
!IsWine())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user