@@ -152,7 +152,7 @@ void gdImageBmpCtx(gdImagePtr im, gdIOCtxPtr out, int compression)
152152 gdBMPPutInt (out , im -> colorsTotal ); /* colours used */
153153 gdBMPPutInt (out , 0 ); /* important colours */
154154
155- /* The line must be divisible by 4, else its padded with NULLs */
155+ /* The line must be divisible by 4, else it's padded with NULLs */
156156 padding = ((int )(im -> trueColor ? 3 : 1 ) * im -> sx ) % 4 ;
157157 if (padding ) {
158158 padding = 4 - padding ;
@@ -646,7 +646,7 @@ static int bmp_read_os2_v2_info(gdIOCtxPtr infile, bmp_info_t *info)
646646 return 1 ;
647647 }
648648
649- /* Lets seek the next 24 pointless bytes, we don't care too much about it */
649+ /* Let's seek the next 24 pointless bytes, we don't care too much about it */
650650 if (!gdGetBuf (useless_bytes , 24 , infile )) {
651651 return 1 ;
652652 }
@@ -716,7 +716,7 @@ static int bmp_read_direct(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, b
716716 }
717717 }
718718
719- /* The line must be divisible by 4, else its padded with NULLs */
719+ /* The line must be divisible by 4, else it's padded with NULLs */
720720 padding = ((int )(info -> depth / 8 ) * info -> width ) % 4 ;
721721 if (padding ) {
722722 padding = 4 - padding ;
@@ -883,7 +883,7 @@ static int bmp_read_4bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp
883883 }
884884 }
885885
886- /* The line must be divisible by 4, else its padded with NULLs */
886+ /* The line must be divisible by 4, else it's padded with NULLs */
887887 padding = ((int )ceil (0.5 * info -> width )) % 4 ;
888888 if (padding ) {
889889 padding = 4 - padding ;
@@ -970,7 +970,7 @@ static int bmp_read_8bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp
970970 }
971971 }
972972
973- /* The line must be divisible by 4, else its padded with NULLs */
973+ /* The line must be divisible by 4, else it's padded with NULLs */
974974 padding = (1 * info -> width ) % 4 ;
975975 if (padding ) {
976976 padding = 4 - padding ;
0 commit comments