Fixed SDL_GetDisplayIndex()
This commit is contained in:
parent
7055001d85
commit
1a007ab88d
1 changed files with 2 additions and 1 deletions
|
@ -950,7 +950,8 @@ int SDL_GetDisplayIndex(SDL_DisplayID displayID)
|
|||
int display_index;
|
||||
|
||||
if (!_this) {
|
||||
return SDL_UninitializedVideo();
|
||||
SDL_UninitializedVideo();
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (display_index = 0; display_index < _this->num_displays; ++display_index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue