Kaydet (Commit) 684aec54 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Dr.Memory complains about this...

Change-Id: I00ad970ab7cc97cfa37d6785540d6cfa825976c8
üst 45ad2b6f
......@@ -406,7 +406,7 @@ inline BitmapColor& BitmapColor::Invert()
inline sal_uInt8 BitmapColor::GetLuminance() const
{
DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" );
return( (sal_uInt8) ( ( mcBlueOrIndex * 28UL + mcGreen * 151UL + mcRed * 77UL ) >> 8UL ) );
return (unsigned long(mcBlueOrIndex) * 28UL + unsigned long(mcGreen) * 151UL + unsigned long(mcRed) * 77UL) >> 8;
}
inline BitmapColor& BitmapColor::IncreaseLuminance( sal_uInt8 cGreyInc )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment