Correct left boundary on the second stage

This commit is contained in:
Aleksandr Karpinskii 2024-07-02 19:05:24 +04:00
parent 5fb44ab694
commit 8256b9bb7f

View File

@ -53,6 +53,8 @@ ImagingGetBBox(Imaging im, int bbox[4], int alpha_only) {
for (x = 0; x < im->xsize; x++) \ for (x = 0; x < im->xsize; x++) \
if (im->image[y][x] & mask) { \ if (im->image[y][x] & mask) { \
has_data = 1; \ has_data = 1; \
if (x < bbox[0]) \
bbox[0] = x; \
bbox[3] = y + 1; \ bbox[3] = y + 1; \
break; \ break; \
} \ } \