mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
X11: Fixed missing error message if SDL_GetDisplayDPI() failed.
This commit is contained in:
parent
441359bd5a
commit
81235118ab
@ -1070,7 +1070,7 @@ X11_GetDisplayDPI(_THIS, SDL_VideoDisplay * sdl_display, float * ddpi, float * h
|
|||||||
*vdpi = data->vdpi;
|
*vdpi = data->vdpi;
|
||||||
}
|
}
|
||||||
|
|
||||||
return data->ddpi != 0.0f ? 0 : -1;
|
return data->ddpi != 0.0f ? 0 : SDL_SetError("Couldn't get DPI");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user