Kaydet (Commit) 01d96add authored tarafından Noel Grandin's avatar Noel Grandin

fix windows build

after commit b97aa3fa
"Remove the unnecessary type definition: HPBYTE"

Change-Id: Ifd73ecb7e923ef38826d24c3d251be29eda472bf
üst e1953f22
...@@ -51,12 +51,20 @@ ...@@ -51,12 +51,20 @@
// - Inlines - // - Inlines -
inline void ImplSetPixel4( const sal_uInt8* pScanline, long nX, const BYTE cIndex ) inline void ImplSetPixel4( sal_uInt8* pScanline, long nX, const BYTE cIndex )
{ {
BYTE& rByte = pScanline[ nX >> 1 ]; BYTE& rByte = pScanline[ nX >> 1 ];
( nX & 1 ) ? ( rByte &= 0xf0, rByte |= ( cIndex & 0x0f ) ) : if ( nX & 1 )
( rByte &= 0x0f, rByte |= ( cIndex << 4 ) ); {
rByte &= 0xf0;
rByte |= cIndex & 0x0f;
}
else
{
rByte &= 0x0f;
rByte |= cIndex << 4;
}
} }
// Helper class to manage Gdiplus::Bitmap instances inside of // Helper class to manage Gdiplus::Bitmap instances inside of
......
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