]> granicus.if.org Git - php/commitdiff
Do not allow AA if not trueColor (imageantialias does nothing)
authorPierre Joye <pajoye@php.net>
Sat, 14 Dec 2002 19:23:29 +0000 (19:23 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 14 Dec 2002 19:23:29 +0000 (19:23 +0000)
ext/gd/libgd/gd.c

index 96684eab6c1b9bf2766aaefda66a24954beea8eb..3eeeba7fecd1f81e45f028782e82d49bbf042868 100644 (file)
@@ -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