diff options
Diffstat (limited to 'vcl/quartz/salbmp.cxx')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index 7146461c7af1..d7de93591f8a 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -438,13 +438,13 @@ class ImplPixelFormat8 : public ImplPixelFormat private: sal_uInt8* pData; const BitmapPalette& mrPalette; - const sal_uInt8 mnPaletteCount; + const sal_uInt16 mnPaletteCount; public: explicit ImplPixelFormat8( const BitmapPalette& rPalette ) : pData(nullptr) , mrPalette(rPalette) - , mnPaletteCount(static_cast< sal_uInt8 >(rPalette.GetEntryCount())) + , mnPaletteCount(rPalette.GetEntryCount()) { } virtual void StartLine( sal_uInt8* pLine ) override { pData = pLine; } @@ -473,7 +473,7 @@ class ImplPixelFormat4 : public ImplPixelFormat private: sal_uInt8* pData; const BitmapPalette& mrPalette; - const sal_uInt8 mnPaletteCount; + const sal_uInt16 mnPaletteCount; sal_uInt32 mnX; sal_uInt32 mnShift; @@ -481,7 +481,7 @@ public: explicit ImplPixelFormat4( const BitmapPalette& rPalette ) : pData(nullptr) , mrPalette(rPalette) - , mnPaletteCount(static_cast< sal_uInt8 >(rPalette.GetEntryCount())) + , mnPaletteCount(rPalette.GetEntryCount()) , mnX(0) , mnShift(0) { @@ -526,14 +526,14 @@ class ImplPixelFormat1 : public ImplPixelFormat private: sal_uInt8* pData; const BitmapPalette& mrPalette; - const sal_uInt8 mnPaletteCount; + const sal_uInt16 mnPaletteCount; sal_uInt32 mnX; public: explicit ImplPixelFormat1( const BitmapPalette& rPalette ) : pData(nullptr) , mrPalette(rPalette) - , mnPaletteCount(static_cast< sal_uInt8 >(rPalette.GetEntryCount())) + , mnPaletteCount(rPalette.GetEntryCount()) , mnX(0) { } |