[][src]Function sdl2_sys::SDL_GetDisplayDPI

pub unsafe extern "C" fn SDL_GetDisplayDPI(
    displayIndex: c_int,
    ddpi: *mut f32,
    hdpi: *mut f32,
    vdpi: *mut f32
) -> c_int

\brief Get the dots/pixels-per-inch for a display

\note Diagonal, horizontal and vertical DPI can all be optionally returned if the parameter is non-NULL.

\return 0 on success, or -1 if no DPI information is available or the index is out of range.

\sa SDL_GetNumVideoDisplays()