Kaydet (Commit) 33d2475d authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Revert "Dr.Memory complains about this..."

Obviously some thinko, does not compile.

This reverts commit 684aec54.
üst f3c0085d
...@@ -406,7 +406,7 @@ inline BitmapColor& BitmapColor::Invert() ...@@ -406,7 +406,7 @@ inline BitmapColor& BitmapColor::Invert()
inline sal_uInt8 BitmapColor::GetLuminance() const inline sal_uInt8 BitmapColor::GetLuminance() const
{ {
DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" ); DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" );
return (unsigned long(mcBlueOrIndex) * 28UL + unsigned long(mcGreen) * 151UL + unsigned long(mcRed) * 77UL) >> 8; return( (sal_uInt8) ( ( mcBlueOrIndex * 28UL + mcGreen * 151UL + mcRed * 77UL ) >> 8UL ) );
} }
inline BitmapColor& BitmapColor::IncreaseLuminance( sal_uInt8 cGreyInc ) 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