Skip to content

Commit

Permalink
Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 20, 2016
1 parent d7b9d32 commit d4140ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/windows/SDL_windowsmodes.c
Expand Up @@ -342,7 +342,7 @@ WIN_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi,
*vdpi = data->VertDPI;
}

return data->DiagDPI != 0.0f ? 0 : -1;
return data->DiagDPI != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
}

int
Expand Down

0 comments on commit d4140ca

Please sign in to comment.