mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58: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) {
|
if (!_this || _this->num_displays == 0) {
|
||||||
SDL_UninitializedVideo();
|
SDL_UninitializedVideo();
|
||||||
return true;
|
return 0;
|
||||||
}
|
}
|
||||||
return _this->displays[0]->id;
|
return _this->displays[0]->id;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user