screen_erase_rect

Function screen_erase_rect 

Source
pub unsafe extern "C" fn screen_erase_rect(
    x0: i16,
    y0: i16,
    x1: i16,
    y1: i16,
) -> u32
Expand description

Erase a rectangle on the screen using the current eraser color

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 point of the rectangle \param x1, y1 The (x,y) coordinates of the second point of the rectangle

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