Changeset 3597


Ignore:
Timestamp:
Jul 31, 2009, 10:24:58 AM (10 years ago)
Author:
Sam Hocevar
Message:

Do not touch the alpha layer in pipi_contrast().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/filter/color.c

    r3544 r3597  
    156156                    p = (srcdata[d + 2] - 0.5) * val + 0.5;
    157157                    dstdata[d + 2] = p < 0. ? 0. : p > 1. ? 1. : p;
    158                     p = (srcdata[d + 3] - 0.5) * val + 0.5;
     158                    p = srcdata[d + 3];
    159159                    dstdata[d + 3] = p;
    160160                }
Note: See TracChangeset for help on using the changeset viewer.