diff options
author | Max Horn | 2003-03-26 22:02:25 +0000 |
---|---|---|
committer | Max Horn | 2003-03-26 22:02:25 +0000 |
commit | c842edb5bd09472e2f3059e1a420e69818ef5aa8 (patch) | |
tree | e74a4f67f69c1316beee68b2cb85a976c8600551 /backends/sdl | |
parent | 2f5cc865fe54e70c6807c15b1ce765102d76680e (diff) | |
download | scummvm-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.cpp | 4 |
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; |