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/vga.h | |
parent | d3c44c1472ab23a8ea37cc63f3f9f8678b0a6af5 (diff) | |
download | gold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.tar.gz gold-mine-run-b4c2ff850930cb29da1a331b17fcc8a9e561b5ff.zip |
Add color text
Diffstat (limited to 'src/vga.h')
-rw-r--r-- | src/vga.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |