src/video/windows/SDL_windowsmodes.c
changeset 10174 284022a7f51e
parent 10117 7552aa4c1c6d
child 10179 7cbfd97f1430
--- 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