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
This commit is contained in:
Max Horn 2003-03-26 22:02:25 +00:00
parent 2f5cc865fe
commit c842edb5bd

View file

@ -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;