Browse Source

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

Ryan C. Gordon 9 months ago
parent
commit
045f0456b1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/video/dummy/SDL_nullvideo.c

+ 3 - 3
src/video/dummy/SDL_nullvideo.c

@@ -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)