Browse Source

autocontrast: fix alpha handling.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@4879 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 10 years ago
parent
commit
c117c13d61
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      pipi/filter/autocontrast.c

+ 2
- 0
pipi/filter/autocontrast.c View File

@@ -100,6 +100,8 @@ pipi_image_t *pipi_autocontrast(pipi_image_t *src)
= (srcdata[4 * (y * w + x) + 1] - min) * t; = (srcdata[4 * (y * w + x) + 1] - min) * t;
dstdata[4 * (y * w + x) + 2] dstdata[4 * (y * w + x) + 2]
= (srcdata[4 * (y * w + x) + 2] - min) * t; = (srcdata[4 * (y * w + x) + 2] - min) * t;
dstdata[4 * (y * w + x) + 3]
= srcdata[4 * (y * w + x) + 3];
} }
} }
} }


Loading…
Cancel
Save