From 76803b01642cf0cb8f24eb4efa25b80aac1c3496 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 11 Mar 2021 18:18:46 +0200 Subject: [PATCH] GUI debugger window position fix. --- od-win32/debug_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3