diff options
Diffstat (limited to 'graphics/imlib2')
-rw-r--r-- | graphics/imlib2/Makefile | 2 | ||||
-rw-r--r-- | graphics/imlib2/files/patch-loader_tiff.c | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/graphics/imlib2/Makefile b/graphics/imlib2/Makefile index 8396fb92a0da..2650ef044aa6 100644 --- a/graphics/imlib2/Makefile +++ b/graphics/imlib2/Makefile @@ -7,7 +7,7 @@ PORTNAME= imlib2 PORTVERSION= 1.2.1.010 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= http://enlightenment.freedesktop.org/files/ diff --git a/graphics/imlib2/files/patch-loader_tiff.c b/graphics/imlib2/files/patch-loader_tiff.c new file mode 100644 index 000000000000..3f8f25d8c5bb --- /dev/null +++ b/graphics/imlib2/files/patch-loader_tiff.c @@ -0,0 +1,15 @@ +--- src/modules/loaders/loader_tiff.c.orig Fri Jan 6 23:36:17 2006 ++++ src/modules/loaders/loader_tiff.c Wed Mar 15 13:57:03 2006 +@@ -100,11 +100,11 @@ + { + int a, r, g, b; + ++ pixel_value = (*(pixel++)); + a = TIFFGetA(pixel_value); + r = TIFFGetR(pixel_value); + g = TIFFGetG(pixel_value); + b = TIFFGetB(pixel_value); +- pixel_value = (*(pixel++)); + if ((a > 0) && (a < 255) && (alpha_premult)) + { + r = (r * 255) / a; |