Commit 8785a8ddcc6e772d82744279447bb9541da5a407

Authored by bellard
1 parent 79737e4a

'invisible wall' patch (Anthony Liguori)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1953 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 2 deletions
... ... @@ -285,13 +285,18 @@ static void sdl_update_caption(void)
285 285  
286 286 static void sdl_hide_cursor(void)
287 287 {
288   - SDL_SetCursor(sdl_cursor_hidden);
  288 + if (kbd_mouse_is_absolute()) {
  289 + SDL_ShowCursor(1);
  290 + SDL_SetCursor(sdl_cursor_hidden);
  291 + } else {
  292 + SDL_ShowCursor(0);
  293 + }
289 294 }
290 295  
291 296 static void sdl_show_cursor(void)
292 297 {
293 298 if (!kbd_mouse_is_absolute()) {
294   - SDL_SetCursor(sdl_cursor_normal);
  299 + SDL_ShowCursor(1);
295 300 }
296 301 }
297 302  
... ...