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 dots/pixels-per-inch for a display.

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

A failure of this function usually means that either no DPI information is available or the displayIndex is out of range.

\param displayIndex the index of the display from which DPI information should be queried \param ddpi a pointer filled in with the diagonal DPI of the display; may be NULL \param hdpi a pointer filled in with the horizontal DPI of the display; may be NULL \param vdpi a pointer filled in with the vertical DPI of the display; may be NULL \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.4.

\sa SDL_GetNumVideoDisplays