Skip to content

Commit b4dac2a

Browse files
committed
- WS
1 parent eac9477 commit b4dac2a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

ext/gd/libgd/gd.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ TBB: but watch out for /0! */
11951195
if (as != 0) {
11961196
wid = thick / as;
11971197
} else {
1198-
wid = 1;
1198+
wid = 1;
11991199
}
12001200
if (wid == 0) {
12011201
wid = 1;
@@ -1679,7 +1679,7 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e
16791679

16801680

16811681
if ((s % 360) == (e % 360)) {
1682-
s = 0; e = 360;
1682+
s = 0; e = 360;
16831683
} else {
16841684
if (s > 360) {
16851685
s = s % 360;
@@ -1697,7 +1697,7 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e
16971697
e += 360;
16981698
}
16991699
if (s == e) {
1700-
s = 0; e = 360;
1700+
s = 0; e = 360;
17011701
}
17021702
}
17031703

@@ -1896,7 +1896,7 @@ void gdImageFill(gdImagePtr im, int x, int y, int nc)
18961896
do {
18971897
c = gdImageGetPixel(im, ix, iy);
18981898
if (c != oc) {
1899-
goto done;
1899+
goto done;
19001900
}
19011901
gdImageSetPixel(im, ix, iy, nc);
19021902
} while(ix++ < (im->sx -1));
@@ -1908,7 +1908,7 @@ void gdImageFill(gdImagePtr im, int x, int y, int nc)
19081908
}
19091909
gdImageSetPixel(im, ix, iy, nc);
19101910
} while(ix++ < (im->sx -1));
1911-
goto done;
1911+
goto done;
19121912
}
19131913

19141914
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
23082308
tox++;
23092309
continue;
23102310
}
2311+
23112312
/*
23122313
* If it's the same image, mapping is NOT trivial since we
23132314
* 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
23192320
dc = gdImageGetPixel(dst, tox, toy);
23202321
g = (0.29900f * gdImageRed(dst, dc)) + (0.58700f * gdImageGreen(dst, dc)) + (0.11400f * gdImageBlue(dst, dc));
23212322

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));
23252326

23262327
/* First look for an exact match */
23272328
nc = gdImageColorExact(dst, ncR, ncG, ncB);

0 commit comments

Comments
 (0)