summaryrefslogtreecommitdiff
path: root/src/modules/plato
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-04-30 10:13:23 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-01 21:02:44 -0700
commit17beb406f2033ef522b0aebee07bae64317fa8fe (patch)
tree0b19666754b4b47a68d9a803060367c3b4876475 /src/modules/plato
parenta59229c5513e73348c87bcfc5cc4b39a31012437 (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/modules/plato')
-rw-r--r--src/modules/plato/plato.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}
© All Rights Reserved