aboutsummaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-21 22:42:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-21 22:42:28 +0100
commitb4c2ff850930cb29da1a331b17fcc8a9e561b5ff (patch)
treee3b5a6c0d4a4454cc13afc8cc72bdc1e476e8569 /src/text.c
parentd3c44c1472ab23a8ea37cc63f3f9f8678b0a6af5 (diff)
downloadgold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.tar.gz
gold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.zip
Add color text
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index c59b5e6..4ec4c54 100644
--- a/src/text.c
+++ b/src/text.c
@@ -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;
}
}