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. Pull Request: https://projects.blender.org/blender/blender/pulls/117965
This commit is contained in:
committed by
Harley Acheson
parent
4db6cbfbe0
commit
b32effdaa8
@@ -221,9 +221,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);
|
||||
|
||||
Reference in New Issue
Block a user