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

disable workaround for cases where PeekMessage was not hooked

This commit is contained in:
FunkyFr3sh 2024-09-06 22:29:25 +02:00
parent b1e7cfe5b4
commit eb5957008f

View File

@ -1024,7 +1024,8 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
if (g_config.remove_menu && GetMenu(g_ddraw.hwnd))
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 &&
!IsWine())
{