diff --git a/src/compress.c b/src/compress.c index 0727c1a..23f11d0 100644 --- a/src/compress.c +++ b/src/compress.c @@ -69,6 +69,9 @@ void addPixelToSelectedZone(Image *t_img, int64_t t_idx, Zone *t_zone) { for (; left_limit <= right_limit; ++left_limit) { addPixelToSelectedZone(t_img, t_idx + t_img->sizeX, t_zone); } + for (; left_limit <= right_limit; ++left_limit) { + addPixelToSelectedZone(t_img, t_idx - t_img->sizeX, t_zone); + } } /**