summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-05-21 14:42:38 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-05-21 14:42:38 -0700
commit896e2d9916bc97cbff5fbfe0186341d206bcdaec (patch)
tree1b840f343dac692b7949b2f87da1a8300dd1a1b8 /src
parentd206b967b063f9df163575dad3fdbc0e8f63e08d (diff)
modules/shapes: fixup clearing when {letter,pillar}boxed
3b6e34e70 broke this with what looks to be a silly mistake in modifying the existing put_pixel() calls. Kept the fragment->{x,y} instead of removing those and keeping the bare {x,y}.
Diffstat (limited to 'src')
-rw-r--r--src/modules/shapes/shapes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/shapes/shapes.c b/src/modules/shapes/shapes.c
index 47e4b8b..0b89373 100644
--- a/src/modules/shapes/shapes.c
+++ b/src/modules/shapes/shapes.c
@@ -121,20 +121,20 @@ static void shapes_render_fragment(til_module_context_t *context, til_stream_t *
if (xoff > fragment->x) {
for (int y = fragment->y; y < fragment->y + fragment->height; y++) {
for (int x = fragment->x; x < xoff; x++)
- til_fb_fragment_put_pixel_checked(fragment, 0, fragment->x, fragment->y, 0x0);
+ til_fb_fragment_put_pixel_checked(fragment, 0, x, y, 0x0);
for (int x = fragment->frame_width - (size + xoff); x < fragment->x + fragment->width; x++)
- til_fb_fragment_put_pixel_checked(fragment, 0, fragment->x, fragment->y, 0x0);
+ til_fb_fragment_put_pixel_checked(fragment, 0, x, y, 0x0);
}
}
if (yoff > fragment->y) {
for (int y = fragment->y; y < yoff; y++)
for (int x = fragment->x; x < fragment->x + fragment->width; x++)
- til_fb_fragment_put_pixel_unchecked(fragment, 0, fragment->x, fragment->y, 0x0);
+ til_fb_fragment_put_pixel_unchecked(fragment, 0, x, y, 0x0);
for (int y = fragment->frame_height - (size + yoff); y < fragment->y + fragment->height; y++)
for (int x = fragment->x; x < fragment->x + fragment->width; x++)
- til_fb_fragment_put_pixel_unchecked(fragment, 0, fragment->x, fragment->y, 0x0);
+ til_fb_fragment_put_pixel_unchecked(fragment, 0, x, y, 0x0);
}
}
© All Rights Reserved