aboutsummaryrefslogtreecommitdiff
path: root/src/vga.h
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/vga.h
parentd3c44c1472ab23a8ea37cc63f3f9f8678b0a6af5 (diff)
downloadgold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.tar.gz
gold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.zip
Add color text
Diffstat (limited to 'src/vga.h')
-rw-r--r--src/vga.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vga.h b/src/vga.h
index e6642f7..7bd5779 100644
--- a/src/vga.h
+++ b/src/vga.h
@@ -21,6 +21,8 @@ void wait_vsync();
void set_palette(const uint8_t *palette);
void blit(const uint8_t *sprite, const Rect *dst);
+/* used for text: skip transparent, ignore 0, replace any other color by c */
+void blit_c(const uint8_t *sprite, const Rect *dst, uint8_t c);
/* in src w is sprite width, h is sprite height */
void blitrc(const uint8_t *sprite, const Rect *src, const Rect *dst);
void blit_erase(uint8_t c);