mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 206312 Some rle4 bitmaps not recognised r=biesi sr=tor a=mkaply
This commit is contained in:
parent
13da6b1dd4
commit
6a04aff08a
@ -579,7 +579,16 @@ NS_METHOD nsBMPDecoder::ProcessData(const char* aBuffer, PRUint32 aCount)
|
||||
memset(mAlphaPtr, 0xFF, mStateData);
|
||||
mAlphaPtr += mStateData;
|
||||
|
||||
if ((mStateData & 1) == 0)
|
||||
// See if we will need to skip a byte
|
||||
// to word align the pixel data
|
||||
// mStateData is a number of pixels
|
||||
// so allow for the RLE compression type
|
||||
// Pixels RLE8=1 RLE4=2
|
||||
// 1 Pad Pad
|
||||
// 2 No Pad
|
||||
// 3 Pad No
|
||||
// 4 No No
|
||||
if (((mStateData - 1) & mBIH.compression) != 0)
|
||||
mState = eRLEStateAbsoluteMode;
|
||||
else
|
||||
mState = eRLEStateAbsoluteModePadded;
|
||||
|
Loading…
Reference in New Issue
Block a user