summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/quartz/salbmp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index fd0fe7d22b8e..a0e5ca4e8b2a 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -414,8 +414,8 @@ public:
}
virtual void WritePixel( ColorData nColor ) SAL_OVERRIDE
{
- *pData++ = ((COLORDATA_RED( nColor ) & 0xf8 ) << 7 ) ||
- ((COLORDATA_GREEN( nColor ) & 0xf8 ) << 2 ) ||
+ *pData++ = ((COLORDATA_RED( nColor ) & 0xf8 ) << 7 ) |
+ ((COLORDATA_GREEN( nColor ) & 0xf8 ) << 2 ) |
((COLORDATA_BLUE( nColor ) & 0xf8 ) >> 3 );
}
};