Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
diff --git a/src/video/windows/SDL_windowsmodes.c b/src/video/windows/SDL_windowsmodes.c
index 1c1a0f6..8e80fa6 100644
--- a/src/video/windows/SDL_windowsmodes.c
+++ b/src/video/windows/SDL_windowsmodes.c
@@ -342,7 +342,7 @@ WIN_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi,
*vdpi = data->VertDPI;
}
- return data->DiagDPI != 0.0f ? 0 : -1;
+ return data->DiagDPI != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
}
int