aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-08-03 23:34:04 +0000
committerMax Horn2003-08-03 23:34:04 +0000
commit00861f884141e73a024d1cac57e25c0f16115bd2 (patch)
tree0dfed619bd2e24307b4c87dde4c154602161b7a3
parent5a9fe8212129b1ba46127cdd5cc6ad75fcbb4812 (diff)
downloadscummvm-rg350-00861f884141e73a024d1cac57e25c0f16115bd2.tar.gz
scummvm-rg350-00861f884141e73a024d1cac57e25c0f16115bd2.tar.bz2
scummvm-rg350-00861f884141e73a024d1cac57e25c0f16115bd2.zip
fix for bug #781903 (ALL: jerky cursor movement regression)
svn-id: r9446
-rw-r--r--backends/sdl/sdl-common.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 0b94433384..c71be78f3d 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -467,6 +467,7 @@ void OSystem_SDL_Common::set_mouse_pos(int x, int y) {
_mouseCurState.x = x;
_mouseCurState.y = y;
undraw_mouse();
+ update_screen();
}
}
@@ -713,6 +714,7 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
return true;
case SDL_MOUSEBUTTONDOWN:
+printf("Mousedown at %d,%d, button %d\n", ev.button.x, ev.button.y, ev.button.button);
if (ev.button.button == SDL_BUTTON_LEFT)
event->event_code = EVENT_LBUTTONDOWN;
else if (ev.button.button == SDL_BUTTON_RIGHT)