Skip to content

Commit 22f59eb

Browse files
dos1SiegeLord
authored andcommitted
SDL: implement al_(show|hide)_mouse_cursor
1 parent ac7f859 commit 22f59eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdl/sdl_display.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,13 @@ static bool sdl_set_system_mouse_cursor(ALLEGRO_DISPLAY *display,
325325
static bool sdl_show_mouse_cursor(ALLEGRO_DISPLAY *display)
326326
{
327327
(void)display;
328-
return false;
328+
return SDL_ShowCursor(SDL_ENABLE) == SDL_ENABLE;
329329
}
330330

331331
static bool sdl_hide_mouse_cursor(ALLEGRO_DISPLAY *display)
332332
{
333333
(void)display;
334-
return false;
334+
return SDL_ShowCursor(SDL_DISABLE) == SDL_DISABLE;
335335
}
336336

337337
static void sdl_set_window_position(ALLEGRO_DISPLAY *display, int x, int y)

0 commit comments

Comments
 (0)