source: trunk/packages/xen-3.1/xen-3.1/tools/ioemu/patches/sdl-mouse-invisible-wall @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 581 bytes
Line 
1Index: ioemu/sdl.c
2===================================================================
3--- ioemu.orig/sdl.c    2006-07-12 11:35:01.450735012 +0100
4+++ ioemu/sdl.c 2006-07-12 11:35:03.377493622 +0100
5@@ -280,13 +280,18 @@
6 
7 static void sdl_hide_cursor(void)
8 {
9-    SDL_SetCursor(sdl_cursor_hidden);
10+    if (kbd_mouse_is_absolute()) {
11+       SDL_ShowCursor(1);
12+       SDL_SetCursor(sdl_cursor_hidden);
13+    } else {
14+       SDL_ShowCursor(0);
15+    }
16 }
17 
18 static void sdl_show_cursor(void)
19 {
20     if (!kbd_mouse_is_absolute()) {
21-       SDL_SetCursor(sdl_cursor_normal);
22+       SDL_ShowCursor(1);
23     }
24 }
25 
Note: See TracBrowser for help on using the repository browser.