summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-06-20 21:28:42 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-06-26 14:47:12 +0100
commit83632a63a177f5c94cdab4db8c66104c886d6c6c (patch)
treeaf9b8d187dc28004f77ca5d6f032c740d4907764 /basebmp
parentab65f3766c818783f0c00f6b89a5d3069649fea4 (diff)
basebmp: back-port un-expected enumeration changes.
Change-Id: Ic96e1b1394cf0277535b48630c2a1ae77e4db670
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/test/bmpmasktest.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/basebmp/test/bmpmasktest.cxx b/basebmp/test/bmpmasktest.cxx
index 46ec462cef5c..cbc34c0f2b85 100644
--- a/basebmp/test/bmpmasktest.cxx
+++ b/basebmp/test/bmpmasktest.cxx
@@ -61,7 +61,7 @@ private:
mpMaskBmp1bpp,
aSourceRect,
aDestAll,
- DrawMode_PAINT );
+ DrawMode::DrawMode_PAINT );
CPPUNIT_ASSERT_MESSAGE("number of rendered pixel is not 30",
countPixel( rDevice, aCol ) == 30);
}
@@ -165,7 +165,7 @@ public:
basebmp::Format nFormat;
- nFormat = Format::OneBitMsbPal;
+ nFormat = FORMAT_ONE_BIT_MSB_PAL;
// nFormat = Format::OneBitMsbGrey; // FIXME - un-comment me to crash hard.
xMask = createBitmapDevice( aSize, false /* bTopDown */,
nFormat,
@@ -180,20 +180,20 @@ public:
basegfx::tools::importFromSvgD( aPoly, "m 2 2 h4 v8 h-4z",
false, NULL );
xMask->fillPolyPolygon( aPoly, basebmp::Color( 0xff, 0xff, 0xff ),
- DrawMode::Paint );
+ DrawMode::DrawMode_PAINT );
xBitmap = createBitmapDevice( aSize, false,
- Format::ThirtyTwoBitTcMaskBGRX,
+ FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX,
basebmp::getBitmapDeviceStrideForWidth(
- Format::ThirtyTwoBitTcMaskBGRX, aSize.getX()) );
+ FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX, aSize.getX() ) );
xBitmap->clear(Color(0x80808080));
}
{ // mpOutput & mpBitmap
const basegfx::B2ISize aSize(9, 9);
xOutput = createBitmapDevice( aSize, false,
- Format::ThirtyTwoBitTcMaskBGRX,
+ FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX,
basebmp::getBitmapDeviceStrideForWidth(
- Format::ThirtyTwoBitTcMaskBGRX, aSize.getX()) );
+ FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX, aSize.getX()) );
xOutput->clear(Color(0xffffffff));
}
@@ -203,7 +203,7 @@ public:
xOutput->drawMaskedBitmap(
xBitmap, xMask,
aSourceRect, aDestAll,
- DrawMode::Paint );
+ DrawMode::DrawMode_PAINT );
CPPUNIT_ASSERT_MESSAGE( "output not cleared to white",
xOutput->getPixelData( basegfx::B2IPoint( 0, 0 ) ) == 0xffffff );