aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
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 &&