diff options
-rw-r--r-- | win32/PlatWin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 948e5e655..e8b142f6a 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1052,12 +1052,12 @@ void Window::SetTitle(const char *s) { ::SetWindowTextA(reinterpret_cast<HWND>(id), s); } -/* Returns rectangle of monitor pt is on, both rect and pt are in Window's +/* Returns rectangle of monitor pt is on, both rect and pt are in Window's coordinates */ #ifdef MULTIPLE_MONITOR_SUPPORT PRectangle Window::GetMonitorRect(Point pt) { - // MonitorFromPoint and GetMonitorInfoare not available on Windows 95 so are not used. - // There could be conditional code and dynamic loading in a future version + // MonitorFromPoint and GetMonitorInfo are not available on Windows 95 so are not used. + // There could be conditional code and dynamic loading in a future version // so this would work on those platforms where they are available. PRectangle rcPosition = GetPosition(); POINT ptDesktop = {pt.x + rcPosition.left, pt.y + rcPosition.top}; @@ -1067,9 +1067,9 @@ PRectangle Window::GetMonitorRect(Point pt) { mi.cbSize = sizeof(mi); if (::GetMonitorInfo(hMonitor, &mi)) { PRectangle rcMonitor( - mi.rcWork.left - rcPosition.left, - mi.rcWork.top - rcPosition.top, - mi.rcWork.right - rcPosition.left, + mi.rcWork.left - rcPosition.left, + mi.rcWork.top - rcPosition.top, + mi.rcWork.right - rcPosition.left, mi.rcWork.bottom - rcPosition.top); return rcMonitor; } |