gint/src/image/image_clear.c

14 lines
214 B
C

#include <gint/image.h>
#include <gint/config.h>
#if GINT_RENDER_RGB
void image_clear(image_t *img)
{
if(!IMAGE_IS_ALPHA(img->format))
return;
image_fill(img, image_alpha(img->format));
}
#endif