]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
GUI debugger window position fix.
authorToni Wilen <twilen@winuae.net>
Thu, 11 Mar 2021 16:18:46 +0000 (18:18 +0200)
committerToni Wilen <twilen@winuae.net>
Thu, 11 Mar 2021 16:18:46 +0000 (18:18 +0200)
od-win32/debug_win32.cpp

index 3a6fa907a63a4840d92214020a80a51ae268c860..c41a7cf7c69b9d0f99486b210a4d130d9b25b592 100644 (file)
@@ -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;