diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-01 01:34:14 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-01 01:34:14 +0000 |
commit | 9467cd4602adfdacb457478d6aa074ea02652645 (patch) | |
tree | e5e01321475b9d50aea0e1e9af69e6d7a1d1c916 /sdl.c | |
parent | a90b7318ba55b1aed71e299ec965bbd8f393b9b3 (diff) |
-show-cursor switch to inhibit SDL hiding cursor.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2763 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r-- | sdl.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -236,6 +236,9 @@ static void sdl_update_caption(void) static void sdl_hide_cursor(void) { + if (!cursor_hide) + return; + if (kbd_mouse_is_absolute()) { SDL_ShowCursor(1); SDL_SetCursor(sdl_cursor_hidden); @@ -246,6 +249,9 @@ static void sdl_hide_cursor(void) static void sdl_show_cursor(void) { + if (!cursor_hide) + return; + if (!kbd_mouse_is_absolute()) { SDL_ShowCursor(1); if (guest_cursor && |