Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 20 May 2016 22:15:58 +0200
changeset 10174 284022a7f51e
parent 10173 5b0a869a9946
child 10175 fcf0d3ca1fa2
Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
src/video/windows/SDL_windowsmodes.c
--- a/src/video/windows/SDL_windowsmodes.c	Fri May 20 22:15:28 2016 +0200
+++ b/src/video/windows/SDL_windowsmodes.c	Fri May 20 22:15:58 2016 +0200
@@ -342,7 +342,7 @@
         *vdpi = data->VertDPI;
     }
 
-    return data->DiagDPI != 0.0f ? 0 : -1;
+    return data->DiagDPI != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
 }
 
 int