diff --git a/include/basebmp/rgbmaskpixelformats.hxx b/include/basebmp/rgbmaskpixelformats.hxx index d1d9b8464e49..696f35aac846 100644 --- a/include/basebmp/rgbmaskpixelformats.hxx +++ b/include/basebmp/rgbmaskpixelformats.hxx @@ -148,6 +148,7 @@ template< typename PixelType, template< typename PixelType, typename ColorType, + unsigned int BaseValue, unsigned int RedMask, unsigned int GreenMask, unsigned int BlueMask, @@ -174,6 +175,7 @@ template< typename PixelType, const typename base_type::unsigned_pixel_type blue (c.getBlue()); typename base_type::unsigned_pixel_type res( + BaseValue | (shiftLeft(red, base_type::red_shift-8* (signed)sizeof(typename base_type::component_type)+ @@ -194,6 +196,7 @@ template< typename PixelType, template< typename PixelType, + unsigned int BaseValue, unsigned int RedMask, unsigned int GreenMask, unsigned int BlueMask, @@ -209,6 +212,7 @@ template< typename PixelType, SwapBytes> getter_type; typedef RGBMaskSetter