Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <rishel.nick@gmail.com>2021-06-23 20:12:21 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2021-06-23 20:12:21 +0300
commitd6212f67a9c2415b5d664150991d8be52a1e9183 (patch)
tree6103673878399131b56824de73b4332903a9bb27
parentef7fcaf8e6c684463ce143bf0ea43d23803919d2 (diff)
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.
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp3
1 files changed, 0 insertions, 3 deletions
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;
}