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.
This commit is contained in:
Nicholas Rishel 2021-06-23 10:12:21 -07:00
parent ef7fcaf8e6
commit d6212f67a9
1 changed files with 0 additions and 3 deletions

View File

@ -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;
}