direct-io.hg

changeset 10352:161473836da3

[HVM][QEMU] Fix SDL mouse "invisible wall".
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Jun 14 22:15:13 2006 +0100 (2006-06-14)
parents ee482dc60eab
children bd1a0b2bb2d4
files tools/ioemu/sdl.c
line diff
     1.1 --- a/tools/ioemu/sdl.c	Wed Jun 14 17:06:28 2006 +0100
     1.2 +++ b/tools/ioemu/sdl.c	Wed Jun 14 22:15:13 2006 +0100
     1.3 @@ -376,13 +376,18 @@ static void sdl_update_caption(void)
     1.4  
     1.5  static void sdl_hide_cursor(void)
     1.6  {
     1.7 -    SDL_SetCursor(sdl_cursor_hidden);
     1.8 +    if (kbd_mouse_is_absolute()) {
     1.9 +	SDL_ShowCursor(1);
    1.10 +	SDL_SetCursor(sdl_cursor_hidden);
    1.11 +    } else {
    1.12 +	SDL_ShowCursor(0);
    1.13 +    }
    1.14  }
    1.15  
    1.16  static void sdl_show_cursor(void)
    1.17  {
    1.18      if (!kbd_mouse_is_absolute()) {
    1.19 -	SDL_SetCursor(sdl_cursor_normal);
    1.20 +	SDL_ShowCursor(1);
    1.21      }
    1.22  }
    1.23