dummyvideo: Change a thing using int to use SDL_bool instead.

This commit is contained in:
Ryan C. Gordon 2024-07-16 14:15:38 -04:00
parent 723c1cc5b3
commit 045f0456b1
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 3 additions and 3 deletions

View File

@ -68,15 +68,15 @@ static void DUMMY_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window)
/* DUMMY driver bootstrap functions */
static int DUMMY_Available(const char *enable_hint)
static SDL_bool DUMMY_Available(const char *enable_hint)
{
const char *hint = SDL_GetHint(SDL_HINT_VIDEO_DRIVER);
if (hint) {
if (SDL_strcmp(hint, enable_hint) == 0) {
return 1;
return SDL_TRUE;
}
}
return 0;
return SDL_FALSE;
}
static void DUMMY_DeleteDevice(SDL_VideoDevice *device)