diff options
author | dinoex <dinoex@FreeBSD.org> | 2004-11-15 03:35:22 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2004-11-15 03:35:22 +0800 |
commit | edf6e0ebf78ce4e9bee4bcfb4a977e091f801d65 (patch) | |
tree | fd17ae10230302fbb6c42a486586ba3e958e460a | |
parent | 35dbdbed23e99d13797a5c399eacd5d07ec987b7 (diff) | |
download | freebsd-ports-gnome-edf6e0ebf78ce4e9bee4bcfb4a977e091f801d65.tar.gz freebsd-ports-gnome-edf6e0ebf78ce4e9bee4bcfb4a977e091f801d65.tar.zst freebsd-ports-gnome-edf6e0ebf78ce4e9bee4bcfb4a977e091f801d65.zip |
- fix bug with generation of transparent png
PR: 72521
Submitted by: Bryan Henderson
-rw-r--r-- | graphics/netpbm/Makefile | 1 | ||||
-rw-r--r-- | graphics/netpbm/files/patch-converter-other-pnmtopng.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index 920819a157e2..1a7e8c0af0bb 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -7,6 +7,7 @@ PORTNAME= netpbm PORTVERSION= 10.25 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/graphics/netpbm/files/patch-converter-other-pnmtopng.c b/graphics/netpbm/files/patch-converter-other-pnmtopng.c index 9a5fbf3a7037..3e60fbdb0bc1 100644 --- a/graphics/netpbm/files/patch-converter-other-pnmtopng.c +++ b/graphics/netpbm/files/patch-converter-other-pnmtopng.c @@ -1,5 +1,16 @@ --- converter/other/pnmtopng.c.orig Sun Jun 23 12:51:37 2002 +++ converter/other/pnmtopng.c Sat Jul 6 00:00:00 2002 +@@ -1365,8 +1366,8 @@ + if (transparent != -1) + makeOneColorTransparentInPalette( + transcolor, transexact, +- palette_pnm, *paletteSizeP, trans_pnm, +- transSizeP); ++ palette_pnm, paletteSize, trans_pnm, ++ &transSize); + } + if (!*noColormapReasonP) { + if (background > -1) @@ -1903,8 +1903,13 @@ */ fprintf(stderr, " Compiled with libpng %s.\n", |