aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorMax Horn2003-03-26 22:02:25 +0000
committerMax Horn2003-03-26 22:02:25 +0000
commitc842edb5bd09472e2f3059e1a420e69818ef5aa8 (patch)
treee74a4f67f69c1316beee68b2cb85a976c8600551 /backends/sdl
parent2f5cc865fe54e70c6807c15b1ce765102d76680e (diff)
downloadscummvm-rg350-c842edb5bd09472e2f3059e1a420e69818ef5aa8.tar.gz
scummvm-rg350-c842edb5bd09472e2f3059e1a420e69818ef5aa8.tar.bz2
scummvm-rg350-c842edb5bd09472e2f3059e1a420e69818ef5aa8.zip
long standing evil bug (luckily hardly has any effect since almost everything has 2 byte alignment; but if the motion/button structs are ever changed, this would have gone broke)
svn-id: r6870
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/sdl-common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index e849360d59..0d74e889fe 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -660,8 +660,8 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
event->event_code = EVENT_WHEELDOWN;
else
break;
- km.x = event->mouse.x = ev.motion.x;
- km.y = event->mouse.y = ev.motion.y;
+ km.x = event->mouse.x = ev.button.x;
+ km.y = event->mouse.y = ev.button.y;
event->mouse.x /= _scaleFactor;
event->mouse.y /= _scaleFactor;