summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 1c03b651da..f9319cf830 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -4597,7 +4597,11 @@ PHP_FUNCTION(imageantialias)
if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) {
RETURN_FALSE;
}
- gdImageSetAntiAliased(im, 0);
+
+ if (im->trueColor) {
+ im->AA = alias;
+ }
+
RETURN_TRUE;
}
/* }}} */