don't use PeekMessageA hack on wine
This commit is contained in:
parent
eb445e378d
commit
1aca711562
2 changed files with 6 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue