[][src]Function fermium::surface::SDL_FillRect

pub unsafe extern "C" fn SDL_FillRect(
    dst: *mut SDL_Surface,
    rect: *const SDL_Rect,
    color: u32
) -> c_int

Performs a fast fill of the given rectangle with color.

If rect is NULL, the whole surface will be filled with color.

The color should be a pixel of the format used by the surface, and can be generated by the SDL_MapRGB() function.

Return: 0 on success, or -1 on error.