mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +00:00
Fixed SDL_GetDisplayIndex()
This commit is contained in:
@@ -950,7 +950,8 @@ int SDL_GetDisplayIndex(SDL_DisplayID displayID)
|
|||||||
int display_index;
|
int display_index;
|
||||||
|
|
||||||
if (!_this) {
|
if (!_this) {
|
||||||
return SDL_UninitializedVideo();
|
SDL_UninitializedVideo();
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (display_index = 0; display_index < _this->num_displays; ++display_index) {
|
for (display_index = 0; display_index < _this->num_displays; ++display_index) {
|
||||||
|
Reference in New Issue
Block a user