[Bf-blender-cvs] [d6212f67a9c] master: Remove window iteration in WM_DISPLAYCHANGE.

Nicholas Rishel noreply at git.blender.org
Wed Jun 23 19:14:41 CEST 2021


Commit: d6212f67a9c2415b5d664150991d8be52a1e9183
Author: Nicholas Rishel
Date:   Wed Jun 23 10:12:21 2021 -0700
Branches: master
https://developer.blender.org/rBd6212f67a9c2415b5d664150991d8be52a1e9183

Remove window iteration in WM_DISPLAYCHANGE.

Iteration was incorrectly calling the same object. Had it called every
window it would still be unnecessary as WM_DISPLAYCHANGE is sent to all
broadcast receiving windows.

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index aa8dad44799..a70e5b91674 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1893,10 +1893,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
         case WM_DISPLAYCHANGE: {
           GHOST_Wintab *wt = window->getWintab();
           if (wt) {
-            for (GHOST_IWindow *iter_win : system->getWindowManager()->getWindows()) {
-              GHOST_WindowWin32 *iter_win32win = (GHOST_WindowWin32 *)iter_win;
               wt->remapCoordinates();
-            }
           }
           break;
         }



More information about the Bf-blender-cvs mailing list