summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/bmpacc2.cxx
diff options
context:
space:
mode:
authorChristof Pintaske <cp@openoffice.org>2001-06-28 12:13:55 +0000
committerChristof Pintaske <cp@openoffice.org>2001-06-28 12:13:55 +0000
commitf12c971bdc9e7d06d4cdb294a885df24067649c1 (patch)
tree3e8cbeba2391b51a8f0f2b4ab84becaa3e2d4017 /vcl/source/gdi/bmpacc2.cxx
parent6c75e12985936f86ef495bfbabcad6901ead539f (diff)
#78724# little and big endian 16bit images need different treatment
Diffstat (limited to 'vcl/source/gdi/bmpacc2.cxx')
-rw-r--r--vcl/source/gdi/bmpacc2.cxx28
1 files changed, 22 insertions, 6 deletions
diff --git a/vcl/source/gdi/bmpacc2.cxx b/vcl/source/gdi/bmpacc2.cxx
index a07f58815a88..7886656413d6 100644
--- a/vcl/source/gdi/bmpacc2.cxx
+++ b/vcl/source/gdi/bmpacc2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bmpacc2.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:05:37 $
+ * last change: $Author: cp $ $Date: 2001-06-28 13:10:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -170,18 +170,34 @@ IMPL_FORMAT_SETPIXEL( _8BIT_TC_MASK )
// ------------------------------------------------------------------
-IMPL_FORMAT_GETPIXEL( _16BIT_TC_MASK )
+IMPL_FORMAT_GETPIXEL( _16BIT_TC_MSB_MASK )
{
BitmapColor aColor;
- rMask.GetColorFor16Bit( aColor, pScanline + ( nX << 1UL ) );
+ rMask.GetColorFor16BitMSB( aColor, pScanline + ( nX << 1UL ) );
return aColor;
}
// ------------------------------------------------------------------
-IMPL_FORMAT_SETPIXEL( _16BIT_TC_MASK )
+IMPL_FORMAT_SETPIXEL( _16BIT_TC_MSB_MASK )
{
- rMask.SetColorFor16Bit( rBitmapColor, pScanline + ( nX << 1UL ) );
+ rMask.SetColorFor16BitMSB( rBitmapColor, pScanline + ( nX << 1UL ) );
+}
+
+// ------------------------------------------------------------------
+
+IMPL_FORMAT_GETPIXEL( _16BIT_TC_LSB_MASK )
+{
+ BitmapColor aColor;
+ rMask.GetColorFor16BitLSB( aColor, pScanline + ( nX << 1UL ) );
+ return aColor;
+}
+
+// ------------------------------------------------------------------
+
+IMPL_FORMAT_SETPIXEL( _16BIT_TC_LSB_MASK )
+{
+ rMask.SetColorFor16BitLSB( rBitmapColor, pScanline + ( nX << 1UL ) );
}
// ------------------------------------------------------------------