提交 8785a8dd 编写于 作者: B bellard

'invisible wall' patch (Anthony Liguori)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1953 c046a42c-6fe2-441c-8c8c-71466251a162
上级 79737e4a
...@@ -285,13 +285,18 @@ static void sdl_update_caption(void) ...@@ -285,13 +285,18 @@ static void sdl_update_caption(void)
static void sdl_hide_cursor(void) static void sdl_hide_cursor(void)
{ {
if (kbd_mouse_is_absolute()) {
SDL_ShowCursor(1);
SDL_SetCursor(sdl_cursor_hidden); SDL_SetCursor(sdl_cursor_hidden);
} else {
SDL_ShowCursor(0);
}
} }
static void sdl_show_cursor(void) static void sdl_show_cursor(void)
{ {
if (!kbd_mouse_is_absolute()) { if (!kbd_mouse_is_absolute()) {
SDL_SetCursor(sdl_cursor_normal); SDL_ShowCursor(1);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册