forked from Lephenixnoir/gint
14 lines
453 B
C
14 lines
453 B
C
#include <gint/display.h>
|
|
|
|
/* dsubimage(): Render a section of an image */
|
|
void dsubimage(int x, int y, image_t const *img, int left, int top,
|
|
int w, int h, int flags)
|
|
{
|
|
if(IMAGE_IS_RGB16(img->format))
|
|
return dsubimage_rgb16(x, y, img, left, top, w, h, flags);
|
|
else if(IMAGE_IS_P8(img->format))
|
|
return dsubimage_p8(x, y, img, left, top, w, h, flags);
|
|
else if(IMAGE_IS_P4(img->format))
|
|
return dsubimage_p4(x, y, img, left, top, w, h, flags);
|
|
}
|