summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/libgd/gd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c
index 96684eab6c..3eeeba7fec 100644
--- a/ext/gd/libgd/gd.c
+++ b/ext/gd/libgd/gd.c
@@ -3189,7 +3189,9 @@ gdImageAlphaBlending (gdImagePtr im, int alphaBlendingArg)
void
gdImageAntialias (gdImagePtr im, int antialias)
{
- im->antialias = antialias;
+ if (im->trueColor){
+ im->antialias = antialias;
+ }
}
void