@@ -936,7 +936,7 @@ static inline void _gdScaleRow(gdImagePtr pSrc, unsigned int src_width, gdImage
936
936
int * p_dst_row = dst -> tpixels [row ];
937
937
unsigned int x ;
938
938
939
- for (x = 0 ; x < dst_width - 1 ; x ++ ) {
939
+ for (x = 0 ; x < dst_width ; x ++ ) {
940
940
register unsigned char r = 0 , g = 0 , b = 0 , a = 0 ;
941
941
const int left = contrib -> ContribRow [x ].Left ;
942
942
const int right = contrib -> ContribRow [x ].Right ;
@@ -972,7 +972,7 @@ static inline int _gdScaleHoriz(gdImagePtr pSrc, unsigned int src_width, unsigne
972
972
return 0 ;
973
973
}
974
974
/* Scale each row */
975
- for (u = 0 ; u < dst_height - 1 ; u ++ ) {
975
+ for (u = 0 ; u < dst_height ; u ++ ) {
976
976
_gdScaleRow (pSrc , src_width , pDst , dst_width , u , contrib );
977
977
}
978
978
_gdContributionsFree (contrib );
@@ -982,7 +982,7 @@ static inline int _gdScaleHoriz(gdImagePtr pSrc, unsigned int src_width, unsigne
982
982
static inline void _gdScaleCol (gdImagePtr pSrc , unsigned int src_width , gdImagePtr pRes , unsigned int dst_width , unsigned int dst_height , unsigned int uCol , LineContribType * contrib )
983
983
{
984
984
unsigned int y ;
985
- for (y = 0 ; y < dst_height - 1 ; y ++ ) {
985
+ for (y = 0 ; y < dst_height ; y ++ ) {
986
986
register unsigned char r = 0 , g = 0 , b = 0 , a = 0 ;
987
987
const int iLeft = contrib -> ContribRow [y ].Left ;
988
988
const int iRight = contrib -> ContribRow [y ].Right ;
@@ -1019,7 +1019,7 @@ static inline int _gdScaleVert (const gdImagePtr pSrc, const unsigned int src_wi
1019
1019
return 0 ;
1020
1020
}
1021
1021
/* scale each column */
1022
- for (u = 0 ; u < dst_width - 1 ; u ++ ) {
1022
+ for (u = 0 ; u < dst_width ; u ++ ) {
1023
1023
_gdScaleCol (pSrc , src_width , pDst , dst_width , dst_height , u , contrib );
1024
1024
}
1025
1025
_gdContributionsFree (contrib );
0 commit comments