commit c486629fcc00f9c5355b390ff3749312cdd07546
parent 40cfab3fd2be2973867eb55a3b10f3ad637233de
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date: Tue, 27 Dec 2022 16:56:34 -0600
Fix bug in print_avg_color
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/photomosaics.c b/photomosaics.c
@@ -76,7 +76,7 @@ static Pixel get_img_avg_color(Image *image, const ssize_t x, const ssize_t y, c
free(pixels);
exit(1);
}
- Pixel p = get_avg_color(pixels, width, x, y, width, height);
+ Pixel p = get_avg_color(pixels, width, 0, y, width, height);
free(pixels);
return p;
}