From: Toni Wilen Date: Thu, 11 Mar 2021 16:18:46 +0000 (+0200) Subject: GUI debugger window position fix. X-Git-Tag: 4900~169 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=76803b01642cf0cb8f24eb4efa25b80aac1c3496;p=francis%2Fwinuae.git GUI debugger window position fix. --- diff --git a/od-win32/debug_win32.cpp b/od-win32/debug_win32.cpp index 3a6fa907..c41a7cf7 100644 --- a/od-win32/debug_win32.cpp +++ b/od-win32/debug_win32.cpp @@ -1770,7 +1770,7 @@ static INT_PTR CALLBACK DebuggerProc (HWND hDlg, UINT message, WPARAM wParam, LP HMONITOR hmon = MonitorFromWindow(hDlg, MONITOR_DEFAULTTONEAREST); if (hmon && GetMonitorInfo(hmon, &mi)) { xoffset = mi.rcWork.left - mi.rcMonitor.left; - yoffset = mi.rcWork.top - mi.rcWork.top; + yoffset = mi.rcWork.top - mi.rcMonitor.top; } if (GetWindowPlacement (hDlg, &wp)) { r = &wp.rcNormalPosition;