Browse Source

Fixed SDL_GetPrimaryDisplay()

Sam Lantinga 11 months ago
parent
commit
7055001d85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/SDL_video.c

+ 1 - 1
src/video/SDL_video.c

@@ -940,7 +940,7 @@ SDL_DisplayID SDL_GetPrimaryDisplay(void)
 {
 {
     if (!_this || _this->num_displays == 0) {
     if (!_this || _this->num_displays == 0) {
         SDL_UninitializedVideo();
         SDL_UninitializedVideo();
-        return true;
+        return 0;
     }
     }
     return _this->displays[0]->id;
     return _this->displays[0]->id;
 }
 }