Fixed SDL_GetPrimaryDisplay()

This commit is contained in:
Sam Lantinga
2024-08-28 15:59:13 -07:00
parent 0cdb4833d5
commit 7055001d85

View File

@@ -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;
} }