diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-04-30 10:13:23 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-05-01 21:02:44 -0700 |
commit | 17beb406f2033ef522b0aebee07bae64317fa8fe (patch) | |
tree | 0b19666754b4b47a68d9a803060367c3b4876475 /src/libs/txt | |
parent | a59229c5513e73348c87bcfc5cc4b39a31012437 (diff) |
til_fb: add draw flags for controlling texturability
Just adds TIL_FB_DRAW_FLAG_TEXTURABLE so callers can granularly
inhibit texturing if desired.
Diffstat (limited to 'src/libs/txt')
-rw-r--r-- | src/libs/txt/txt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/txt/txt.c b/src/libs/txt/txt.c index 02b753f..e1923b9 100644 --- a/src/libs/txt/txt.c +++ b/src/libs/txt/txt.c @@ -159,7 +159,7 @@ static inline void draw_char(til_fb_fragment_t *fragment, uint32_t color, int x, for (int i = 0; i < ASCII_HEIGHT; i++) { for (int j = 0; j < ASCII_WIDTH; j++) { if (ascii_chars[c][i * ASCII_WIDTH + j]) - til_fb_fragment_put_pixel_checked(fragment, x + j, y + i, color); + til_fb_fragment_put_pixel_checked(fragment, 0, x + j, y + i, color); } } } |