'invisible wall' patch (Anthony Liguori)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 13 Jun 2006 10:49:12 +0000 (10:49 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 13 Jun 2006 10:49:12 +0000 (10:49 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1953 c046a42c-6fe2-441c-8c8c-71466251a162

sdl.c

diff --git a/sdl.c b/sdl.c
index ec4f93c..d99505e 100644 (file)
--- 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);
     }
 }