From c842edb5bd09472e2f3059e1a420e69818ef5aa8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 26 Mar 2003 22:02:25 +0000 Subject: 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 --- backends/sdl/sdl-common.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3