diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-15 06:12:11 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2006-03-15 06:12:11 +0000 |
commit | d380d8cedf0f2a0c4f33a377d63e88bf98f26660 (patch) | |
tree | 18f778610e799a9a3fb52b862452442a3db7e751 /graphics/imlib2/files | |
parent | 868771d4659e72f34accc61d62c609caf91d3766 (diff) | |
download | ports-d380d8cedf0f2a0c4f33a377d63e88bf98f26660.tar.gz ports-d380d8cedf0f2a0c4f33a377d63e88bf98f26660.zip |
Notes
Diffstat (limited to 'graphics/imlib2/files')
-rw-r--r-- | graphics/imlib2/files/patch-loader_tiff.c | 15 |
1 files changed, 15 insertions, 0 deletions
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; |