From 1e2b21b4105e62e1a08c38631162760a60c616de Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 7 Jul 2007 03:11:02 +0000 Subject: Typo. --- win32/PlatWin.cxx | 12 ++++++------ 1 file 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(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; } -- cgit v1.2.3