SDL: Removed InvalidateRect() when moving and resizing

From caa33cb0184484582915a5fc7d04afbee10cdc22 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 8 Oct 2025 13:32:19 -0700
Subject: [PATCH] Removed InvalidateRect() when moving and resizing

This was added in 2016, presumably to help address the move/resize issues on Windows, which have been since been addressed by the live-resize functionality.

Fixes https://github.com/libsdl-org/SDL/issues/14079
---
 src/video/windows/SDL_windowsevents.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c
index 9c8bf6d103bc2..667223c27cc6f 100644
--- a/src/video/windows/SDL_windowsevents.c
+++ b/src/video/windows/SDL_windowsevents.c
@@ -1818,9 +1818,6 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
             }
         }
 
-        // Forces a WM_PAINT event
-        InvalidateRect(hwnd, NULL, FALSE);
-
     } break;
 
     case WM_ENTERSIZEMOVE: