Ensure WM_PAINT is handled correctly

Otherwise, Windows will send WM_PAINT messages non-stop and burn CPU doing nothing
This fixes an odd behaviour where moving the mouse over the window could increase FPS
This commit is contained in:
Anthony 2021-01-26 20:08:58 +13:00
parent ae43ded58b
commit 20549fec19
1 changed files with 4 additions and 0 deletions

View File

@ -1824,6 +1824,10 @@ static LRESULT WINAPI EmuMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar
{ {
DrawUEM(hWnd); DrawUEM(hWnd);
} }
else
{
DefWindowProc(hWnd, msg, wParam, lParam);
}
} }
break; break;