aboutsummaryrefslogtreecommitdiffstats
path: root/src/text/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/text/text.h')
-rw-r--r--src/text/text.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/text/text.h b/src/text/text.h
index 647a021..0bcf090 100644
--- a/src/text/text.h
+++ b/src/text/text.h
@@ -119,6 +119,15 @@ txt_draws(char *msg, size_t x, size_t y, size_t spacing, u8 clr) {
119 } 119 }
120} 120}
121 121
122static inline
123void
124txt_drawc(char c, size_t x, size_t y, size_t spacing, u8 clr) {
125 Tile *tile = FONT_DATA;
126 tile += c;
127 draw_tile(x, y, tile, clr, true);
128 x += spacing;
129}
130
122// Print text to the screen with formatting. 131// Print text to the screen with formatting.
123#define txt_printf(msg, ...) \ 132#define txt_printf(msg, ...) \
124 { \ 133 { \