mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
don't use PeekMessageA hack on wine
This commit is contained in:
parent
eb445e378d
commit
1aca711562
7
src/dd.c
7
src/dd.c
@ -713,8 +713,11 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
||||
|
||||
if (g_ddraw->windowed)
|
||||
{
|
||||
MSG msg; /* workaround for "Not Responding" window problem in cnc games */
|
||||
real_PeekMessageA(&msg, g_ddraw->hwnd, 0, 0, PM_NOREMOVE);
|
||||
if (!g_ddraw->wine)
|
||||
{
|
||||
MSG msg; /* workaround for "Not Responding" window problem in cnc games */
|
||||
real_PeekMessageA(&msg, g_ddraw->hwnd, 0, 0, PM_NOREMOVE);
|
||||
}
|
||||
|
||||
if (!border)
|
||||
{
|
||||
|
@ -940,7 +940,7 @@ HRESULT dds_Lock(
|
||||
|
||||
dbg_dump_dds_lock_flags(dwFlags);
|
||||
|
||||
if (g_ddraw && g_ddraw->fixnotresponding)
|
||||
if (g_ddraw && g_ddraw->fixnotresponding && !g_ddraw->wine)
|
||||
{
|
||||
MSG msg; /* workaround for "Not Responding" window problem */
|
||||
real_PeekMessageA(&msg, g_ddraw->hwnd, 0, 0, PM_NOREMOVE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user