From ecbfd97de175c55e0c3af3d8452bbbd03580ffa4 Mon Sep 17 00:00:00 2001 From: MeirGavish Date: Fri, 8 Aug 2025 14:47:45 +0300 Subject: [PATCH] Added some documentation to memcpy16_tile8_with_palette_offset() --- include/graphic_utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/graphic_utils.h b/include/graphic_utils.h index 695c388..8160d81 100644 --- a/include/graphic_utils.h +++ b/include/graphic_utils.h @@ -122,7 +122,11 @@ void update_text_rect_to_right_align_num(Rect* rect, int num, int overflow_direc /*Copies 16 bit data from src to dst, applying a palette offset to the data. * This is intended solely for use with tile8/8bpp data for dst and src. + * The palette offset allows the tiles to use a different location in the palette + * memory + * This is useful because grit always loads the palette to the beginning of + * pal_bg_mem[] */ void memcpy16_tile8_with_palette_offset(void* dst, const void* src, uint hwcount, u8 palette_offset); -#endif //GRAPHIC_UTILS_H \ No newline at end of file +#endif //GRAPHIC_UTILS_H