From 896e2d9916bc97cbff5fbfe0186341d206bcdaec Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 21 May 2023 14:42:38 -0700 Subject: 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}. --- src/modules/shapes/shapes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules') 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); } } -- cgit v1.2.3