From c117c13d61f6041c44a178a190f9941023e02b1e Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 13 Jun 2014 05:41:07 +0000 Subject: [PATCH] autocontrast: fix alpha handling. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@4879 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/filter/autocontrast.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipi/filter/autocontrast.c b/pipi/filter/autocontrast.c index b495527..bcf167e 100644 --- a/pipi/filter/autocontrast.c +++ b/pipi/filter/autocontrast.c @@ -100,6 +100,8 @@ pipi_image_t *pipi_autocontrast(pipi_image_t *src) = (srcdata[4 * (y * w + x) + 1] - min) * t; dstdata[4 * (y * w + x) + 2] = (srcdata[4 * (y * w + x) + 2] - min) * t; + dstdata[4 * (y * w + x) + 3] + = srcdata[4 * (y * w + x) + 3]; } } }