Skip to content

Commit

Permalink
Fixed missing error message if SDL_GetDisplayDPI() is unsupported.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 10, 2016
1 parent 73b63e5 commit bf7a761
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/SDL_video.c
Expand Up @@ -719,7 +719,9 @@ 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;
}
Expand Down

0 comments on commit bf7a761

Please sign in to comment.