diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2021-06-23 20:12:21 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2021-06-23 20:12:21 +0300 |
commit | d6212f67a9c2415b5d664150991d8be52a1e9183 (patch) | |
tree | 6103673878399131b56824de73b4332903a9bb27 /intern | |
parent | ef7fcaf8e6c684463ce143bf0ea43d23803919d2 (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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 3 |
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; } |