[PATCH 0/1] MR7269: imm32: Always validate the IME UI window when painting.
Even when there is no context. Prevents a storm of WM_PAINTs if the window is somehow shown in that case. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7269
From: Tim Clem <tclem(a)codeweavers.com> Even when there is no context. Prevents a storm of WM_PAINTs if the window is somehow shown in that case. --- dlls/imm32/ime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/imm32/ime.c b/dlls/imm32/ime.c index 24270e89291..cf80faab930 100644 --- a/dlls/imm32/ime.c +++ b/dlls/imm32/ime.c @@ -205,7 +205,11 @@ static void ime_ui_paint( HIMC himc, HWND hwnd ) WCHAR *str; UINT len; - if (!(ctx = ImmLockIMC( himc ))) return; + if (!(ctx = ImmLockIMC( himc ))) + { + ValidateRect( hwnd, NULL ); + return; + } hdc = BeginPaint( hwnd, &ps ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7269
This merge request was approved by Rémi Bernon. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7269
participants (3)
-
Rémi Bernon -
Tim Clem -
Tim Clem (@tclem)