diff options
author | Thorsten Behrens <thb@openoffice.org> | 2006-07-12 21:47:21 +0000 |
---|---|---|
committer | Thorsten Behrens <thb@openoffice.org> | 2006-07-12 21:47:21 +0000 |
commit | 053fdb6c0d6862bb0110917edc5d31ff764fdea8 (patch) | |
tree | db2254c2b97af75974ce067cad981cdf4bdf1772 /basebmp/source | |
parent | 41aac5e01a735244839680528ae6245f1520ceee (diff) |
#i65904# Fixed operator+=/-= on PackedPixelRowIterator (wrong overflow handling & forgot to handle negated cases); fixed typo for paletteformats (ignoring bit gravity); made drawMaskedBitmap() work for more cases; improved tests
Diffstat (limited to 'basebmp/source')
-rw-r--r-- | basebmp/source/bitmapdevice.cxx | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx index 8d293b06d74e..64975d9ca5de 100644 --- a/basebmp/source/bitmapdevice.cxx +++ b/basebmp/source/bitmapdevice.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bitmapdevice.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: thb $ $Date: 2006-07-12 15:09:44 $ + * last change: $Author: thb $ $Date: 2006-07-12 22:47:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1019,7 +1019,7 @@ namespace const BitmapDeviceSharedPtr& rClip ) { // xxx TODO - if( isCompatibleClipMask(rClip) && + if( isCompatibleClipMask(rMask) && isCompatibleBitmap(rSrcBitmap) ) { if( drawMode == DrawMode_XOR ) @@ -1559,7 +1559,7 @@ void BitmapDevice::drawMaskedColor( Color rSrcColor, if( isCompatibleClipMask( rAlphaMask ) || isCompatibleAlphaMask( rAlphaMask ) ) drawMaskedColor_i( rSrcColor, rAlphaMask, aSrcRange, aDestPoint ); else - OSL_ENSURE(false, "Generic output not yet implemented!"); + OSL_ENSURE( false, "drawMaskedColor(): Generic output not yet implemented #1!" ); } #endif } @@ -1611,7 +1611,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor, } else { - OSL_ENSURE(false, "Generic output not yet implemented!"); + OSL_ENSURE(false, "drawMaskedColor(): Generic output not yet implemented #2!"); } #endif } @@ -1650,15 +1650,7 @@ void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap, rSrcRect, rDstRect, drawMode ); } #else - if( isCompatibleBitmap( rSrcBitmap ) && - isCompatibleClipMask( rMask ) ) - { - drawMaskedBitmap_i( rSrcBitmap, rMask, aSrcRange, aDestRange, drawMode ); - } - else - { - OSL_ENSURE(false, "Generic output not yet implemented!"); - } + drawMaskedBitmap_i( rSrcBitmap, rMask, aSrcRange, aDestRange, drawMode ); #endif } } @@ -1704,15 +1696,13 @@ void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap, rDstRect, drawMode, rClip ); } #else - if( isCompatibleBitmap( rSrcBitmap ) && - isCompatibleClipMask( rMask ) && - isCompatibleClipMask( rClip ) ) + if( isCompatibleClipMask( rClip ) ) { drawMaskedBitmap_i( rSrcBitmap, rMask, aSrcRange, aDestRange, drawMode, rClip ); } else { - OSL_ENSURE(false, "Generic output not yet implemented!"); + OSL_ENSURE(false, "drawMaskedBitmap(): Generic output not yet implemented #2!"); } #endif } |