mirror of https://github.com/encounter/SDL.git
Windows: Fixed missing error message if SDL_GetDisplayDPI() failed.
This commit is contained in:
parent
d7b9d321fa
commit
d4140ca473
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue