Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere authored and homm committed Aug 14, 2024
1 parent 2b6c5a2 commit e4e2cd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libImaging/GetBBox.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ImagingGetBBox(Imaging im, int bbox[4], int alpha_only) {
bbox[2] = bbox[3] = 0;

#define GETBBOX(image, mask) \
/* first stage: looking for any px from top */ \
/* first stage: looking for any pixels from top */ \
for (y = 0; y < im->ysize; y++) { \
has_data = 0; \
for (x = 0; x < im->xsize; x++) { \
Expand All @@ -46,11 +46,11 @@ ImagingGetBBox(Imaging im, int bbox[4], int alpha_only) {
break; \
} \
} \
/* Check that we got a box */ \
/* Check that we have a box */ \
if (bbox[1] < 0) { \
return 0; /* no data */ \
} \
/* second stage: looking for any px from bottom */ \
/* second stage: looking for any pixels from bottom */ \
for (y = im->ysize - 1; y >= bbox[1]; y--) { \
has_data = 0; \
for (x = 0; x < im->xsize; x++) { \
Expand Down

0 comments on commit e4e2cd6

Please sign in to comment.