summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/drawmode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qa/cppunit/drawmode.cxx')
-rw-r--r--vcl/qa/cppunit/drawmode.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/qa/cppunit/drawmode.cxx b/vcl/qa/cppunit/drawmode.cxx
index f2b59dc8440c..e3792ae1f29f 100644
--- a/vcl/qa/cppunit/drawmode.cxx
+++ b/vcl/qa/cppunit/drawmode.cxx
@@ -343,9 +343,7 @@ void VclDrawModeTest::testDrawModeBitmapEx()
Bitmap::ScopedReadAccess pReadAccess(aResultBitmap);
const BitmapColor& rColor = pReadAccess->GetColor(0, 0);
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x26), sal_Int32(rColor.GetRed()));
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x26), sal_Int32(rColor.GetGreen()));
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x26), sal_Int32(rColor.GetBlue()));
+ CPPUNIT_ASSERT_EQUAL(BitmapColor(0x26, 0x26, 0x26), rColor);
}
// any other operation other than DrawModeFlags::GrayBitmap is a noop
@@ -355,9 +353,7 @@ void VclDrawModeTest::testDrawModeBitmapEx()
Bitmap::ScopedReadAccess pReadAccess(aResultBitmap);
const BitmapColor& rColor = pReadAccess->GetColor(0, 0);
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x80), sal_Int32(rColor.GetRed()));
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x00), sal_Int32(rColor.GetGreen()));
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x00), sal_Int32(rColor.GetBlue()));
+ CPPUNIT_ASSERT_EQUAL(BitmapColor(COL_RED), rColor);
}
}