[dasher: 148/217] GetCursorPos already returns Screen Coordinates.



commit b0547500fbf31ccf857378d60a68365803c27435
Author: Ron Bessems <ron b promixis com>
Date:   Wed Dec 16 19:39:37 2015 -0500

    GetCursorPos already returns Screen Coordinates.

 Src/Win32/Widgets/Screen.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/Src/Win32/Widgets/Screen.cpp b/Src/Win32/Widgets/Screen.cpp
index 722d884..377342d 100644
--- a/Src/Win32/Widgets/Screen.cpp
+++ b/Src/Win32/Widgets/Screen.cpp
@@ -213,7 +213,6 @@ void CScreen::Polygon(point *Points, int Number, int fillColour, int outlineColo
 bool CScreen::IsWindowUnderCursor() {
   POINT pt;
   GetCursorPos(&pt);
-  ClientToScreen(m_hWnd, &pt);
   HWND h = WindowFromPoint(pt);
   return h == m_hWnd;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]