aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-01 01:34:14 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-01 01:34:14 +0000
commit9467cd4602adfdacb457478d6aa074ea02652645 (patch)
treee5e01321475b9d50aea0e1e9af69e6d7a1d1c916 /sdl.c
parenta90b7318ba55b1aed71e299ec965bbd8f393b9b3 (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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index a8dbc2c735..6c30db146d 100644
--- a/sdl.c
+++ b/sdl.c
@@ -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 &&