diff options
author | Bad Diode <bd@badd10de.dev> | 2021-06-07 19:27:34 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-06-07 19:27:34 +0200 |
commit | df32deb2e40c1bddf2441d4681486b8b2e3fc004 (patch) | |
tree | 1acc026d5af59422fbdd8f5179afe7196202fb48 /src/text/text.h | |
parent | ac0cced1c487e1b98d2b834d5b462d46a7732569 (diff) | |
download | stepper-df32deb2e40c1bddf2441d4681486b8b2e3fc004.tar.gz stepper-df32deb2e40c1bddf2441d4681486b8b2e3fc004.zip |
Change font used to a custom mixed font
Diffstat (limited to 'src/text/text.h')
-rw-r--r-- | src/text/text.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text/text.h b/src/text/text.h index 3b7921d..01dddb0 100644 --- a/src/text/text.h +++ b/src/text/text.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include "posprintf.h" | 4 | #include "posprintf.h" |
5 | #include "renderer.h" | 5 | #include "renderer.h" |
6 | 6 | ||
7 | #include "bd-font.c" | 7 | #include "font.h" |
8 | 8 | ||
9 | typedef struct TextEngine { | 9 | typedef struct TextEngine { |
10 | // Cursor for tiled text mode The X and Y positions correspond to the tile | 10 | // Cursor for tiled text mode The X and Y positions correspond to the tile |
@@ -30,7 +30,7 @@ static inline | |||
30 | void | 30 | void |
31 | txt_init(u32 *font_data, u16 *font_tilemap, u16 font_offset) { | 31 | txt_init(u32 *font_data, u16 *font_tilemap, u16 font_offset) { |
32 | // Load font data into VRAM. | 32 | // Load font data into VRAM. |
33 | unpack_tiles(&bd_font, font_data, 256); | 33 | unpack_tiles(&font, font_data, 256); |
34 | 34 | ||
35 | // Initialize the font map translation table. That way we can write | 35 | // Initialize the font map translation table. That way we can write |
36 | // a character on the text background layer with: | 36 | // a character on the text background layer with: |