From b4c2ff850930cb29da1a331b17fcc8a9e561b5ff Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 21 Jun 2023 22:42:28 +0100 Subject: Add color text --- src/vga.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vga.h') 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); -- cgit v1.2.3