@@ -1195,7 +1195,7 @@ TBB: but watch out for /0! */
1195
1195
if (as != 0 ) {
1196
1196
wid = thick / as ;
1197
1197
} else {
1198
- wid = 1 ;
1198
+ wid = 1 ;
1199
1199
}
1200
1200
if (wid == 0 ) {
1201
1201
wid = 1 ;
@@ -1679,7 +1679,7 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e
1679
1679
1680
1680
1681
1681
if ((s % 360 ) == (e % 360 )) {
1682
- s = 0 ; e = 360 ;
1682
+ s = 0 ; e = 360 ;
1683
1683
} else {
1684
1684
if (s > 360 ) {
1685
1685
s = s % 360 ;
@@ -1697,7 +1697,7 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e
1697
1697
e += 360 ;
1698
1698
}
1699
1699
if (s == e ) {
1700
- s = 0 ; e = 360 ;
1700
+ s = 0 ; e = 360 ;
1701
1701
}
1702
1702
}
1703
1703
@@ -1896,7 +1896,7 @@ void gdImageFill(gdImagePtr im, int x, int y, int nc)
1896
1896
do {
1897
1897
c = gdImageGetPixel (im , ix , iy );
1898
1898
if (c != oc ) {
1899
- goto done ;
1899
+ goto done ;
1900
1900
}
1901
1901
gdImageSetPixel (im , ix , iy , nc );
1902
1902
} while (ix ++ < (im -> sx - 1 ));
@@ -1908,7 +1908,7 @@ void gdImageFill(gdImagePtr im, int x, int y, int nc)
1908
1908
}
1909
1909
gdImageSetPixel (im , ix , iy , nc );
1910
1910
} while (ix ++ < (im -> sx - 1 ));
1911
- goto done ;
1911
+ goto done ;
1912
1912
}
1913
1913
1914
1914
stack = (struct seg * )safe_emalloc (sizeof (struct seg ), ((int )(im -> sy * im -> sx )/4 ), 1 );
@@ -2308,6 +2308,7 @@ void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, i
2308
2308
tox ++ ;
2309
2309
continue ;
2310
2310
}
2311
+
2311
2312
/*
2312
2313
* If it's the same image, mapping is NOT trivial since we
2313
2314
* merge with greyscale target, but if pct is 100, the grey
@@ -2319,9 +2320,9 @@ void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, i
2319
2320
dc = gdImageGetPixel (dst , tox , toy );
2320
2321
g = (0.29900f * gdImageRed (dst , dc )) + (0.58700f * gdImageGreen (dst , dc )) + (0.11400f * gdImageBlue (dst , dc ));
2321
2322
2322
- ncR = (int )(gdImageRed (src , c ) * (pct / 100.0f ) + g * ((100 - pct ) / 100.0 ));
2323
- ncG = (int )(gdImageGreen (src , c ) * (pct / 100.0f ) + g * ((100 - pct ) / 100.0 ));
2324
- ncB = (int )(gdImageBlue (src , c ) * (pct / 100.0f ) + g * ((100 - pct ) / 100.0 ));
2323
+ ncR = (int )(gdImageRed (src , c ) * (pct / 100.0f ) + g * ((100 - pct ) / 100.0 ));
2324
+ ncG = (int )(gdImageGreen (src , c ) * (pct / 100.0f ) + g * ((100 - pct ) / 100.0 ));
2325
+ ncB = (int )(gdImageBlue (src , c ) * (pct / 100.0f ) + g * ((100 - pct ) / 100.0 ));
2325
2326
2326
2327
/* First look for an exact match */
2327
2328
nc = gdImageColorExact (dst , ncR , ncG , ncB );
0 commit comments