Kaydet (Commit) 83632a63 authored tarafından Michael Meeks's avatar Michael Meeks

basebmp: back-port un-expected enumeration changes.

Change-Id: Ic96e1b1394cf0277535b48630c2a1ae77e4db670
üst ab65f376
...@@ -61,7 +61,7 @@ private: ...@@ -61,7 +61,7 @@ private:
mpMaskBmp1bpp, mpMaskBmp1bpp,
aSourceRect, aSourceRect,
aDestAll, aDestAll,
DrawMode_PAINT ); DrawMode::DrawMode_PAINT );
CPPUNIT_ASSERT_MESSAGE("number of rendered pixel is not 30", CPPUNIT_ASSERT_MESSAGE("number of rendered pixel is not 30",
countPixel( rDevice, aCol ) == 30); countPixel( rDevice, aCol ) == 30);
} }
...@@ -165,7 +165,7 @@ public: ...@@ -165,7 +165,7 @@ public:
basebmp::Format nFormat; basebmp::Format nFormat;
nFormat = Format::OneBitMsbPal; nFormat = FORMAT_ONE_BIT_MSB_PAL;
// nFormat = Format::OneBitMsbGrey; // FIXME - un-comment me to crash hard. // nFormat = Format::OneBitMsbGrey; // FIXME - un-comment me to crash hard.
xMask = createBitmapDevice( aSize, false /* bTopDown */, xMask = createBitmapDevice( aSize, false /* bTopDown */,
nFormat, nFormat,
...@@ -180,20 +180,20 @@ public: ...@@ -180,20 +180,20 @@ public:
basegfx::tools::importFromSvgD( aPoly, "m 2 2 h4 v8 h-4z", basegfx::tools::importFromSvgD( aPoly, "m 2 2 h4 v8 h-4z",
false, NULL ); false, NULL );
xMask->fillPolyPolygon( aPoly, basebmp::Color( 0xff, 0xff, 0xff ), xMask->fillPolyPolygon( aPoly, basebmp::Color( 0xff, 0xff, 0xff ),
DrawMode::Paint ); DrawMode::DrawMode_PAINT );
xBitmap = createBitmapDevice( aSize, false, xBitmap = createBitmapDevice( aSize, false,
Format::ThirtyTwoBitTcMaskBGRX, FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX,
basebmp::getBitmapDeviceStrideForWidth( basebmp::getBitmapDeviceStrideForWidth(
Format::ThirtyTwoBitTcMaskBGRX, aSize.getX()) ); FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX, aSize.getX() ) );
xBitmap->clear(Color(0x80808080)); xBitmap->clear(Color(0x80808080));
} }
{ // mpOutput & mpBitmap { // mpOutput & mpBitmap
const basegfx::B2ISize aSize(9, 9); const basegfx::B2ISize aSize(9, 9);
xOutput = createBitmapDevice( aSize, false, xOutput = createBitmapDevice( aSize, false,
Format::ThirtyTwoBitTcMaskBGRX, FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX,
basebmp::getBitmapDeviceStrideForWidth( basebmp::getBitmapDeviceStrideForWidth(
Format::ThirtyTwoBitTcMaskBGRX, aSize.getX()) ); FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX, aSize.getX()) );
xOutput->clear(Color(0xffffffff)); xOutput->clear(Color(0xffffffff));
} }
...@@ -203,7 +203,7 @@ public: ...@@ -203,7 +203,7 @@ public:
xOutput->drawMaskedBitmap( xOutput->drawMaskedBitmap(
xBitmap, xMask, xBitmap, xMask,
aSourceRect, aDestAll, aSourceRect, aDestAll,
DrawMode::Paint ); DrawMode::DrawMode_PAINT );
CPPUNIT_ASSERT_MESSAGE( "output not cleared to white", CPPUNIT_ASSERT_MESSAGE( "output not cleared to white",
xOutput->getPixelData( basegfx::B2IPoint( 0, 0 ) ) == 0xffffff ); xOutput->getPixelData( basegfx::B2IPoint( 0, 0 ) ) == 0xffffff );
......
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