From 81235118ab8a5b6609280dcd19271ccf18676618 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Fri, 20 May 2016 22:14:40 +0200 Subject: [PATCH] X11: Fixed missing error message if SDL_GetDisplayDPI() failed. --- src/video/x11/SDL_x11modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index 312107a3c..e3f8497fc 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -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