summaryrefslogtreecommitdiff
path: root/src/modules/stars/stars.c
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/stars/stars.c
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/stars/stars.c')
-rw-r--r--src/modules/stars/stars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/stars/stars.c b/src/modules/stars/stars.c
index 43e7622..e975c7c 100644
--- a/src/modules/stars/stars.c
+++ b/src/modules/stars/stars.c
@@ -159,7 +159,7 @@ static void stars_render_fragment(void *context, unsigned ticks, unsigned cpu, t
opacity = 1;
if (pos_x>0 && pos_x<width && pos_y>0 && pos_y<height)
- til_fb_fragment_put_pixel_unchecked(fragment, pos_x, pos_y,
+ til_fb_fragment_put_pixel_unchecked(fragment, TIL_FB_DRAW_FLAG_TEXTURABLE, pos_x, pos_y,
makergb(0xFF, 0xFF, 0xFF, opacity));
for(int my_y=floorf(pos_y-max_radius); my_y<=(int)ceilf(pos_y+max_radius); my_y++)
@@ -174,7 +174,7 @@ static void stars_render_fragment(void *context, unsigned ticks, unsigned cpu, t
continue;
- til_fb_fragment_put_pixel_unchecked(fragment, my_x, my_y,
+ til_fb_fragment_put_pixel_unchecked(fragment, TIL_FB_DRAW_FLAG_TEXTURABLE, my_x, my_y,
makergb(0xFF, 0xFF, 0xFF, opacity));
}
© All Rights Reserved