diff src/video/bwindow/SDL_sysevents.cc @ 1:cf2af46e9e2a

Changes since SDL 1.2.0 release
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 16:50:19 +0000
parents 74212992fb08
children e8157fcb3114
line wrap: on
line diff
--- a/src/video/bwindow/SDL_sysevents.cc	Thu Apr 26 16:45:43 2001 +0000
+++ b/src/video/bwindow/SDL_sysevents.cc	Thu Apr 26 16:50:19 2001 +0000
@@ -262,7 +262,12 @@
 
 	/* Check for mouse motion */
 	if ( point != last_point ) {
-		SDL_PrivateMouseMotion(0, 0, (int)point.x, (int)point.y);
+		int x, y;
+
+		SDL_Win->GetXYOffset(x, y);
+		x = (int)point.x - x;
+		y = (int)point.y - y;
+		SDL_PrivateMouseMotion(0, 0, x, y);
 	}
 	last_point = point;