From 20549fec194d1e3d858e2a4c5463e6e3747acaf0 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 26 Jan 2021 20:08:58 +1300 Subject: [PATCH] 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 --- src/core/hle/D3D8/Direct3D9/Direct3D9.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp index a3cb441fb..facb4944e 100644 --- a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp +++ b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp @@ -1824,6 +1824,10 @@ static LRESULT WINAPI EmuMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar { DrawUEM(hWnd); } + else + { + DefWindowProc(hWnd, msg, wParam, lParam); + } } break;