Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.

This commit is contained in:
Philipp Wiesemann 2016-05-20 22:15:58 +02:00
parent d7b9d321fa
commit d4140ca473
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ WIN_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi,
*vdpi = data->VertDPI; *vdpi = data->VertDPI;
} }
return data->DiagDPI != 0.0f ? 0 : -1; return data->DiagDPI != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
} }
int int