]> granicus.if.org Git - php/commit
Fix #77943: imageantialias($image, false); does not work
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Apr 2019 15:23:16 +0000 (17:23 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Apr 2019 15:23:16 +0000 (17:23 +0200)
commit18a9ae412f00cc1e312c296952fac24f16b4d4de
tree681b78e1ab9354f68e7a0d9109ec1ad287522dc6
parent3891e0d13a0e85e51a450a868960e98b5c74df56
Fix #77943: imageantialias($image, false); does not work

Firstly, we must not call `gdImageSetAntiAliased()` (which sets the
color to anti-alias), but rather modify the `gdImage.AA` flag.
Furthermore, we have to actually use the supplied boolean value.

We also make sure that we don't attempt to enable anti-aliasing for
palette images.
NEWS
ext/gd/gd.c