diff options
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 2 |
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) |