From ed282c76631cc7ba908034ee6f58e2d7c3241917 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Wed, 7 Feb 2024 14:13:59 -0800 Subject: [PATCH] GHOST/WIN32: Remove Initial UpdateWindow We call UpdateWindow very early in our window creation, before we get an openGl surface and before our message queue is ready. This results in WM_ACTIVATE, WM_SIZE, WM_MOVE, and WM_PAINT messages sent to us at a time when GetMessageTime() returns zero. This makes our event message times have a gap between the fourth and fifth messages, equal to the time since system start. There is no downside to not calling this at this time. --- intern/ghost/intern/GHOST_WindowWin32.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/intern/ghost/intern/GHOST_WindowWin32.cc b/intern/ghost/intern/GHOST_WindowWin32.cc index d6c5e184705..35ed937489b 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cc +++ b/intern/ghost/intern/GHOST_WindowWin32.cc @@ -205,9 +205,6 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system, } #endif - /* Force an initial paint of the window. */ - ::UpdateWindow(m_hWnd); - /* Initialize WINTAB. */ if (system->getTabletAPI() != GHOST_kTabletWinPointer) { loadWintab(GHOST_kWindowStateMinimized != state); -- 2.30.2