mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-05-23 20:15:10 +02:00
Nothing interesting in this commit, just moving files around, making sure every target compiles every file, and controlling with macros instead. Basic support for fxg3a target in CMakeLists.txt, cmake/FindGint.cmake, giteapc.make and include/gint/config.h.in. The rest is forgettable.
17 lines
506 B
C
17 lines
506 B
C
#include <gint/display.h>
|
|
#include <gint/config.h>
|
|
#if GINT_RENDER_RGB
|
|
|
|
/* 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);
|
|
}
|
|
|
|
#endif
|