diff options
author | Max Horn | 2004-03-12 18:23:15 +0000 |
---|---|---|
committer | Max Horn | 2004-03-12 18:23:15 +0000 |
commit | 7f7f647e3c51e1a7da83a074116127cc48308f25 (patch) | |
tree | 05239e5a870d85fd2d3b92331e551cd522986da9 /backends/sdl | |
parent | 711f925f698594d057d3b5027fe182f1f6d6a5a3 (diff) | |
download | scummvm-rg350-7f7f647e3c51e1a7da83a074116127cc48308f25.tar.gz scummvm-rg350-7f7f647e3c51e1a7da83a074116127cc48308f25.tar.bz2 scummvm-rg350-7f7f647e3c51e1a7da83a074116127cc48308f25.zip |
cleanup
svn-id: r13231
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/events.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/backends/sdl/events.cpp b/backends/sdl/events.cpp index 20506a52ee..61098d3018 100644 --- a/backends/sdl/events.cpp +++ b/backends/sdl/events.cpp @@ -75,8 +75,8 @@ void OSystem_SDL::fillMouseEvent(Event &event, int x, int y) { event.mouse.y = y; // Update the "keyboard mouse" coords - km.x = event.mouse.x; - km.y = event.mouse.y; + km.x = x; + km.y = y; // Adjust for the screen scaling event.mouse.x /= _scaleFactor; @@ -548,13 +548,8 @@ bool OSystem_SDL::poll_event(Event *event) { } #endif } - event->mouse.x = km.x; - event->mouse.y = km.y; - event->mouse.x /= _scaleFactor; - event->mouse.y /= _scaleFactor; - - if (_adjustAspectRatio) - event->mouse.y = aspect2Real(event->mouse.y); + + fillMouseEvent(*event, km.x, km.y); return true; |