2019-08-27 21:04:07 +02:00
|
|
|
#include <gint/display.h>
|
|
|
|
|
2020-07-13 13:49:07 +02:00
|
|
|
/* dsubimage(): Render a section of an image */
|
2022-05-04 21:38:52 +02:00
|
|
|
void dsubimage(int x, int y, image_t const *img, int left, int top,
|
|
|
|
int w, int h, int flags)
|
2019-08-27 21:04:07 +02:00
|
|
|
{
|
2022-05-14 00:30:52 +02:00
|
|
|
if(IMAGE_IS_RGB16(img->format))
|
2022-05-04 21:38:52 +02:00
|
|
|
return dsubimage_rgb16(x, y, img, left, top, w, h, flags);
|
2022-05-14 00:30:52 +02:00
|
|
|
else if(IMAGE_IS_P8(img->format))
|
2022-05-04 21:38:52 +02:00
|
|
|
return dsubimage_p8(x, y, img, left, top, w, h, flags);
|
2022-05-14 00:30:52 +02:00
|
|
|
else if(IMAGE_IS_P4(img->format))
|
2022-05-04 21:38:52 +02:00
|
|
|
return dsubimage_p4(x, y, img, left, top, w, h, flags);
|
2019-08-27 21:04:07 +02:00
|
|
|
}
|