Function fermium::video::SDL_GetDisplayDPI
source · pub unsafe extern "C" fn SDL_GetDisplayDPI(
displayIndex: c_int,
ddpi: *mut f32,
hdpi: *mut f32,
vdpi: *mut f32
) -> c_int
Expand description
Get the diagonal, horizontal, and vertical DPI of a display.
Any pointer may safely be null if you don’t want that value.
Returns: 0 on success, negative on failure. Call SDL_GetErrorMsg
for more.