summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-13 10:49:12 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-13 10:49:12 +0000
commit8785a8ddcc6e772d82744279447bb9541da5a407 (patch)
tree44633e18989c8bc9a05e74919224981ad58dcc0e /sdl.c
parent79737e4a7da78d13bd195014f5767d1519dbdfcb (diff)
'invisible wall' patch (Anthony Liguori)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1953 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sdl.c b/sdl.c
index ec4f93c5ef..d99505ef16 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);
}
}