[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>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-06-14 22:15:13 +01:00
1 parent 45b1830267
commit c33ae33cb8
1 file changed
+7 -2
+7 -2
View File
@@ -376,13 +376,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);
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.