diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:40:42 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-28 02:40:42 +0000 |
commit | 34546ecb9b586f34e04f6e133a247ffe1f50046e (patch) | |
tree | 55c0c6c76c55bfe99a9f3c7dec416604a1c6dbd9 /editor/ppmflash.c | |
parent | d484f36f7c690d0a88476127afd9bdf90233699d (diff) | |
download | netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.tar.gz netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.tar.xz netpbm-mirror-34546ecb9b586f34e04f6e133a247ffe1f50046e.zip |
Release 1.04.00
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@4700 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/ppmflash.c')
-rw-r--r-- | editor/ppmflash.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/editor/ppmflash.c b/editor/ppmflash.c index d1d048df..c8335890 100644 --- a/editor/ppmflash.c +++ b/editor/ppmflash.c @@ -1,4 +1,3 @@ - /*********************************************************************/ /* ppmflash - brighten a picture up to total whiteout */ /* Frank Neumann, August 1993 */ @@ -89,12 +88,12 @@ int main(argc, argv) pP2 = destrow; for (j = 0; j < cols; j++) { - PPM_ASSIGN(*pP2, - PPM_GETR(*pP) + + PPM_ASSIGN(*pP2, + PPM_GETR(*pP) + (((maxval - PPM_GETR(*pP)) * longfactor) >> 16), - PPM_GETG(*pP) + + PPM_GETG(*pP) + (((maxval - PPM_GETG(*pP)) * longfactor) >> 16), - PPM_GETB(*pP) + + PPM_GETB(*pP) + (((maxval - PPM_GETB(*pP)) * longfactor) >> 16)); pP++; |