diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-21 22:42:28 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-21 22:42:28 +0100 |
commit | b4c2ff850930cb29da1a331b17fcc8a9e561b5ff (patch) | |
tree | e3b5a6c0d4a4454cc13afc8cc72bdc1e476e8569 /src/text.c | |
parent | d3c44c1472ab23a8ea37cc63f3f9f8678b0a6af5 (diff) | |
download | gold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.tar.gz gold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.zip |
Add color text
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,13 +3,13 @@ #include "vga.h" #include "data.h" -void put_text(uint16_t x, uint16_t y, const char *text) +void put_text(uint16_t x, uint16_t y, const char *text, uint8_t color) { Rect dst = { x, y, 8, 8}; while (*text) { - blit(binary_font_start + ((*text++ - ' ') << 6), &dst); + blit_c(binary_font_start + ((*text++ - ' ') << 6), &dst, color); dst.x += 8; } } |