From 46f8ecd68ec1b298aa30a63b709b457d808d6599 Mon Sep 17 00:00:00 2001 From: Vftdan Date: Thu, 3 Oct 2024 19:35:31 +0200 Subject: [PATCH] GlyphBitmap typedef --- img2cpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/img2cpi.c b/img2cpi.c index 9b3fb11..01509c9 100644 --- a/img2cpi.c +++ b/img2cpi.c @@ -30,8 +30,9 @@ struct palette { }; #define LENGTHOF(...) (sizeof(__VA_ARGS__) / sizeof(*(__VA_ARGS__))) #define PALETTE(...) { .count = LENGTHOF((union color[]){__VA_ARGS__}), .colors = {__VA_ARGS__} } +typedef char GlyphBitmap[11]; -const extern char font_atlas[256][11]; +const extern GlyphBitmap font_atlas[256]; const extern struct palette DEFAULT_PALETTE, DEFAULT_GRAY_PALETTE; struct arguments {