Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
  • Loading branch information
philippwiesemann committed May 20, 2016
1 parent 441359b commit 8123511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11modes.c
Expand Up @@ -1070,7 +1070,7 @@ X11_GetDisplayDPI(_THIS, SDL_VideoDisplay * sdl_display, float * ddpi, float * h
*vdpi = data->vdpi;
}

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

int
Expand Down

0 comments on commit 8123511

Please sign in to comment.