mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fixed SDL_GetPrimaryDisplay()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user