]> git.pld-linux.org Git - packages/thunderbird.git/blame - icedove-libpng.patch
- searchplugins to datadir
[packages/thunderbird.git] / icedove-libpng.patch
CommitLineData
d06a830c
JB
1--- xulrunner-9.0.1/mozilla/modules/libpr0n/decoders/nsPNGDecoder.h.orig 2011-12-21 00:28:33.000000000 +0100
2+++ xulrunner-9.0.1/mozilla/modules/libpr0n/decoders/nsPNGDecoder.h 2012-01-16 18:43:35.830209631 +0100
3@@ -76,7 +76,7 @@
4 // Checks if the info header contains valid information
5 bool HasValidInfo() const
6 {
7- return mInfo && mInfo->valid;
8+ return mInfo && png_get_valid(mPNG, mInfo, 0xFFFFFFFFU);
9 }
10
11 // Obtain the pixel depth if available or 0 otherwise
12@@ -85,7 +85,8 @@
13 if (!mInfo) {
14 return 0;
15 }
16- return mInfo->pixel_depth;
17+ // XXX: shouldn't png_get_pixel_depth() be available?
18+ return png_get_bit_depth(mPNG, mInfo) * png_get_channels(mPNG, mInfo);
19 }
20
21 public:
This page took 0.332336 seconds and 4 git commands to generate.