screen_copy_area

Function screen_copy_area 

Source
pub unsafe extern "C" fn screen_copy_area(
    x0: i16,
    y0: i16,
    x1: i16,
    y1: i16,
    buf: *const u32,
    stride: i32,
) -> u32
Expand description

Copy a screen region (designated by a rectangle) from an off-screen buffer to the screen

This function uses the following values of errno when an error state is reached: EACCESS - Another resource is currently trying to access the screen mutex.

\param x0, y0 The (x,y) coordinates of the first corner of the rectangular region of the screen \param x1, y1 The (x,y) coordinates of the second corner of the rectangular region of the screen \param buf Off-screen buffer containing screen data \param stride Off-screen buffer width in pixels, such that image size is stride-padding

\return 1 if there were no errors, or PROS_ERR if an error occured taking or returning the screen mutex.