mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 10:18:28 +00:00
testcustomcursor: fix Wswitch warning by casting the arg to an int
This commit is contained in:
parent
bb527678a3
commit
a905db9d65
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ loop()
|
|||
|
||||
SDL_SetCursor(cursors[current_cursor]);
|
||||
|
||||
switch (cursor_types[current_cursor]) {
|
||||
switch ((int)cursor_types[current_cursor]) {
|
||||
case (SDL_SystemCursor)-1: SDL_Log("Custom cursor"); break;
|
||||
case SDL_SYSTEM_CURSOR_ARROW: SDL_Log("Arrow"); break;
|
||||
case SDL_SYSTEM_CURSOR_IBEAM: SDL_Log("I-beam"); break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue