From d4140ca47320c3c2762aed60f03953105eeee0c6 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Fri, 20 May 2016 22:15:58 +0200 Subject: [PATCH] Windows: Fixed missing error message if SDL_GetDisplayDPI() failed. --- src/video/windows/SDL_windowsmodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/windows/SDL_windowsmodes.c b/src/video/windows/SDL_windowsmodes.c index 1c1a0f6c6..8e80fa67b 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