[][src]Function fermium::video::SDL_GetDisplayDPI

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

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_GetError for more.