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

View file

@ -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