summaryrefslogtreecommitdiffstats
path: root/image/decoders/nsBMPDecoder.h
Commit message (Collapse)AuthorAgeLines
* BMPs from the clipboard may include extra padding.Andrew Osmond2019-02-16-3/+4
| | | | | | | | | | | | | In the original Windows clipboard BMP decoder implementation in nsImageFromClipboard::ConvertColorBitMap, if the bitmap used bitfields compression, it always adjusted the offset to the RGB data by 12 bytes. It did this even for newer BMP header formats which explicitly include space for the bitfields in their header sizes. This patch updates our BMP decoder to do the same for clipboard BMPs, since we have observed pasted BMPs using bitfield compression appearing incorrectly. To the user this appears as if we read a color mask; completely red, blue, green pixels at the start of the last row, causing all of the other rows to start with the last three pixels of the previous row.
* Use existing image decoders to handle clipboard BMP data.wolfbeast2019-02-07-2/+4
| | | | | This gets rid of the old nsImageClipboard widget code in favor of using the nsBMPDecoder in imglib.
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+235