aboutsummaryrefslogtreecommitdiff
path: root/lzr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzr.c')
-rw-r--r--lzr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lzr.c b/lzr.c
index 1bb773a..6548f16 100644
--- a/lzr.c
+++ b/lzr.c
@@ -233,6 +233,10 @@ int LZR_Init(LZR_Config cfg)
min_dt = 1000 / config.target_fps;
next_time = SDL_GetTicks64();
}
+ if (config.hide_cursor && SDL_ShowCursor(SDL_DISABLE) < 0) {
+ SDL_Log("%s", SDL_GetError());
+ return -1;
+ }
return 0;
}