mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 775794. r=jgilbert
This commit is contained in:
parent
343d8a43ac
commit
3c81b9ea78
@ -137,6 +137,8 @@ nsICODecoder::FixBitmapHeight(PRInt8 *bih)
|
||||
PRInt32 height;
|
||||
memcpy(&height, bih + 8, sizeof(height));
|
||||
height = LITTLE_TO_NATIVE32(height);
|
||||
// BMPs can be stored inverted by having a negative height
|
||||
height = abs(height);
|
||||
|
||||
// The bitmap height is by definition * 2 what it should be to account for
|
||||
// the 'AND mask'. It is * 2 even if the `AND mask` is not present.
|
||||
|
Loading…
Reference in New Issue
Block a user