summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-13 19:31:26 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-13 19:31:26 -0700
commit2f4011b4c5ec416d78d6da304315708a42e39798 (patch)
treeb0d8eb6fef195cc2438d6e0c583abc7b4dcae18d
parentde316ecee0c8fea0bf7fbea8a675a7dd46d0946b (diff)
sdl_fb: hide cursor when fullscreen
-rw-r--r--src/sdl_fb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sdl_fb.c b/src/sdl_fb.c
index c398b92..6a67411 100644
--- a/src/sdl_fb.c
+++ b/src/sdl_fb.c
@@ -220,6 +220,9 @@ static int sdl_fb_acquire(til_fb_t *fb, void *context, void *page)
if (!c->texture)
return -1;
+ if (c->flags & SDL_WINDOW_FULLSCREEN || c->flags & SDL_WINDOW_FULLSCREEN_DESKTOP)
+ SDL_ShowCursor(SDL_DISABLE);
+
return 0;
}
© All Rights Reserved