mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
"Band-aid" fix for the issue with EDuke32 and Mapster32 visually locking up but continuing to run and play sounds after alt+tabbing away for a few seconds on Windows Vista/7. This may screw something else up, so please test thoroughly.
git-svn-id: https://svn.eduke32.com/eduke32@2657 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2ca8dc1c38
commit
778e463549
1 changed files with 5 additions and 23 deletions
|
@ -829,7 +829,8 @@ int32_t handleevents(void)
|
|||
if (startwin_idle((void *)&msg) > 0) continue;
|
||||
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
// DispatchMessage(&msg);
|
||||
DefWindowProc(msg.hwnd, msg.message, msg.wParam, msg.lParam);
|
||||
}
|
||||
|
||||
if (!appactive || quitevent) rv = -1;
|
||||
|
@ -3683,9 +3684,9 @@ static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
|||
if (wParam == SC_KEYMENU || wParam == SC_HOTKEY) return 0;
|
||||
break;
|
||||
|
||||
case WM_ACTIVATEAPP:
|
||||
case WM_ACTIVATE:
|
||||
{
|
||||
appactive = (wParam != 0);
|
||||
appactive = (LOWORD(wParam) != 0);
|
||||
#ifdef USE_OPENGL
|
||||
if (hGLWindow)
|
||||
{
|
||||
|
@ -3730,28 +3731,9 @@ static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
|||
|
||||
Bmemset(keystatus, 0, sizeof(keystatus));
|
||||
AcquireInputDevices(appactive);
|
||||
break;
|
||||
return 0;
|
||||
}
|
||||
|
||||
case WM_ACTIVATE:
|
||||
appactive = (wParam != WA_INACTIVE);
|
||||
|
||||
if (appactive)
|
||||
{
|
||||
SetForegroundWindow(hWindow);
|
||||
SetFocus(hWindow);
|
||||
}
|
||||
|
||||
Bmemset(keystatus, 0, sizeof(keystatus));
|
||||
AcquireInputDevices(appactive);
|
||||
break;
|
||||
|
||||
case WM_SIZE:
|
||||
if (wParam == SIZE_MAXHIDE || wParam == SIZE_MINIMIZED) appactive = 0;
|
||||
else appactive = 1;
|
||||
AcquireInputDevices(appactive);
|
||||
break;
|
||||
|
||||
case WM_PALETTECHANGED:
|
||||
// someone stole the palette so try and steal it back
|
||||
if (bDDrawInited && bpp == 8 && fullscreen)
|
||||
|
|
Loading…
Reference in a new issue