summaryrefslogtreecommitdiffstats
path: root/image/decoders/nsBMPDecoder.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-02-07 22:18:49 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-02-07 22:18:49 +0100
commite66dd9ee75b7ae60a63bb0350bc2c1101e82ca16 (patch)
treedd5eaf5364f66745291d8fc5ebf094eac3243265 /image/decoders/nsBMPDecoder.h
parent0dca00b282fb06ec1512bccafd32e0a919242208 (diff)
parent6992106dc7894fab3f620263e99b4083b36bf9e8 (diff)
downloadUXP-e66dd9ee75b7ae60a63bb0350bc2c1101e82ca16.tar
UXP-e66dd9ee75b7ae60a63bb0350bc2c1101e82ca16.tar.gz
UXP-e66dd9ee75b7ae60a63bb0350bc2c1101e82ca16.tar.lz
UXP-e66dd9ee75b7ae60a63bb0350bc2c1101e82ca16.tar.xz
UXP-e66dd9ee75b7ae60a63bb0350bc2c1101e82ca16.zip
Merge branch 'master' into Basilisk-release
Diffstat (limited to 'image/decoders/nsBMPDecoder.h')
-rw-r--r--image/decoders/nsBMPDecoder.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/image/decoders/nsBMPDecoder.h b/image/decoders/nsBMPDecoder.h
index 0cf2af689..258381649 100644
--- a/image/decoders/nsBMPDecoder.h
+++ b/image/decoders/nsBMPDecoder.h
@@ -152,6 +152,7 @@ private:
enum class State {
FILE_HEADER,
+ CLIPBOARD_HEADER,
INFO_HEADER_SIZE,
INFO_HEADER_REST,
BITFIELDS,
@@ -164,8 +165,8 @@ private:
RLE_ABSOLUTE
};
- // This is the constructor used for normal BMP images.
- explicit nsBMPDecoder(RasterImage* aImage);
+ // This is the constructor used for normal and clipboard BMP images.
+ explicit nsBMPDecoder(RasterImage* aImage, bool aForClipboard = false);
// This is the constructor used for BMP resources in ICO images.
nsBMPDecoder(RasterImage* aImage, uint32_t aDataOffset);
@@ -180,6 +181,7 @@ private:
void FinishRow();
LexerTransition<State> ReadFileHeader(const char* aData, size_t aLength);
+ LexerTransition<State> ReadClipboardHeader(const char* aData, size_t aLength);
LexerTransition<State> ReadInfoHeaderSize(const char* aData, size_t aLength);
LexerTransition<State> ReadInfoHeaderRest(const char* aData, size_t aLength);
LexerTransition<State> ReadBitfields(const char* aData, size_t aLength);