gint/src/image/image_create_vram.c
Lephe 28bea2e1ce
gint: switch from file filters to config macros + basic fxg3a target
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.
2024-03-23 10:02:51 +01:00

17 lines
313 B
C

#include <gint/image.h>
#include <gint/display.h>
#include <gint/config.h>
#if GINT_RENDER_RGB
image_t *image_create_vram(void)
{
image_t *img = image_create(DWIDTH, DHEIGHT, IMAGE_RGB565);
if(!img)
return NULL;
img->stride = 2 * DWIDTH;
img->data = gint_vram;
return img;
}
#endif