Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
This commit is contained in:
parent
13dddf1a3b
commit
ace33eec94
1 changed files with 3 additions and 1 deletions
|
@ -719,6 +719,8 @@ SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi)
|
|||
if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue