diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-03-19 20:13:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-03-19 20:13:01 +0200 |
commit | 33d2475d9f2f01308ba4675ac99aaabb43870e0f (patch) | |
tree | 40b53292525b1f03e9776fc95feb6b134fc67eb2 /include/vcl | |
parent | f3c0085d966d4a8e2223326c52c045b7529ef320 (diff) |
Revert "Dr.Memory complains about this..."
Obviously some thinko, does not compile.
This reverts commit 684aec5496f7394969743614cfda12b11c0466af.
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/salbtype.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/salbtype.hxx b/include/vcl/salbtype.hxx index 1dd62c2c7117..40dfd8f8ba17 100644 --- a/include/vcl/salbtype.hxx +++ b/include/vcl/salbtype.hxx @@ -406,7 +406,7 @@ inline BitmapColor& BitmapColor::Invert() inline sal_uInt8 BitmapColor::GetLuminance() const { 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 ) |