From 17beb406f2033ef522b0aebee07bae64317fa8fe Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 30 Apr 2022 10:13:23 -0700 Subject: til_fb: add draw flags for controlling texturability Just adds TIL_FB_DRAW_FLAG_TEXTURABLE so callers can granularly inhibit texturing if desired. --- src/modules/plato/plato.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/plato') diff --git a/src/modules/plato/plato.c b/src/modules/plato/plato.c index 163a785..18f02e3 100644 --- a/src/modules/plato/plato.c +++ b/src/modules/plato/plato.c @@ -563,7 +563,7 @@ static void draw_line(til_fb_fragment_t *fragment, int x1, int y1, int x2, int y minor -= x_delta; } - til_fb_fragment_put_pixel_checked(fragment, x1, y1, 0xffffffff); + til_fb_fragment_put_pixel_checked(fragment, TIL_FB_DRAW_FLAG_TEXTURABLE, x1, y1, 0xffffffff); } } else { /* Y-major */ @@ -573,7 +573,7 @@ static void draw_line(til_fb_fragment_t *fragment, int x1, int y1, int x2, int y minor -= y_delta; } - til_fb_fragment_put_pixel_checked(fragment, x1, y1, 0xffffffff); + til_fb_fragment_put_pixel_checked(fragment, TIL_FB_DRAW_FLAG_TEXTURABLE, x1, y1, 0xffffffff); } } } -- cgit v1.2.3