X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 20 May 2016 22:14:40 +0200
changeset 10172 b4316ed0c72c
parent 10171 5b61e12c0a30
child 10173 5b0a869a9946
X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11modes.c	Sat May 14 23:29:49 2016 -0400
+++ b/src/video/x11/SDL_x11modes.c	Fri May 20 22:14:40 2016 +0200
@@ -1070,7 +1070,7 @@
         *vdpi = data->vdpi;
     }
 
-    return data->ddpi != 0.0f ? 0 : -1;
+    return data->ddpi != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
 }
 
 int