Forráskód Böngészése

Fixed SDL_GetPrimaryDisplay()

Sam Lantinga 7 hónapja
szülő
commit
7055001d85
1 módosított fájl, 1 hozzáadás és 1 törlés
  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) {
         SDL_UninitializedVideo();
-        return true;
+        return 0;
     }
     return _this->displays[0]->id;
 }