drm_ffi::mode

Function add_fb

source
pub fn add_fb(
    fd: BorrowedFd<'_>,
    width: u32,
    height: u32,
    pitch: u32,
    bpp: u32,
    depth: u32,
    handle: u32,
) -> Result<drm_mode_fb_cmd>
Expand description

Add a new framebuffer.