From: bellard Date: Tue, 13 Jun 2006 10:49:12 +0000 (+0000) Subject: 'invisible wall' patch (Anthony Liguori) X-Git-Tag: release_0_9_1~1941 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0724def46378b0e01a472c1dad7afcceee7cd63d;p=qemu-xen-4.3-testing.git 'invisible wall' patch (Anthony Liguori) --- diff --git a/sdl.c b/sdl.c index ec4f93c5e..d99505ef1 100644 --- a/sdl.c +++ b/sdl.c @@ -285,13 +285,18 @@ static void sdl_update_caption(void) static void sdl_hide_cursor(void) { - SDL_SetCursor(sdl_cursor_hidden); + if (kbd_mouse_is_absolute()) { + SDL_ShowCursor(1); + SDL_SetCursor(sdl_cursor_hidden); + } else { + SDL_ShowCursor(0); + } } static void sdl_show_cursor(void) { if (!kbd_mouse_is_absolute()) { - SDL_SetCursor(sdl_cursor_normal); + SDL_ShowCursor(1); } }