-1 resets the transparent color, return here.
parent
f705975eca
commit
3a4d2127ef
3
src/gd.c
3
src/gd.c
|
@ -898,10 +898,13 @@ BGD_DECLARE(void) gdImageColorTransparent (gdImagePtr im, int color)
|
||||||
// Reset ::transparent
|
// Reset ::transparent
|
||||||
if (color == -1) {
|
if (color == -1) {
|
||||||
im->transparent = -1;
|
im->transparent = -1;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (color < -1) {
|
if (color < -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (im->trueColor) {
|
if (im->trueColor) {
|
||||||
im->transparent = color;
|
im->transparent = color;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue