Function fermium::surface::SDL_SetSurfaceRLE
source · pub unsafe extern "C" fn SDL_SetSurfaceRLE(
surface: *mut SDL_Surface,
flag: c_int
) -> c_int
Expand description
Sets the RLE acceleration hint for a surface.
If RLE is enabled, colorkey and alpha blending blits are much faster, but the surface must be locked before directly accessing the pixels.
Return: 0 on success, or -1 if the surface is not valid