aboutsummaryrefslogtreecommitdiffstats
path: root/src/text
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-04-03 19:12:24 +0200
committerBad Diode <bd@badd10de.dev>2023-04-03 19:12:24 +0200
commitd8084032bec70170c9614708c6ee10316b19e0c2 (patch)
tree212c05716f21745b2e16f956cc77d51440b0391b /src/text
parentd96f6da677bc319f7868e832f09948c94ee6a148 (diff)
downloadstepper-d8084032bec70170c9614708c6ee10316b19e0c2.tar.gz
stepper-d8084032bec70170c9614708c6ee10316b19e0c2.zip
Add noise parameter struct and more ui elements
Diffstat (limited to 'src/text')
-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 { \