diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-05-16 09:13:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-05-16 09:15:44 +0100 |
commit | 63eddc5d7933c3da28daffc05f4113c5c36586ff (patch) | |
tree | aae6a0a93fa04e1077e7cd03c66ad7d13baaa800 /cppcanvas | |
parent | 88f46523ec82663ce28219369f70fb1c4e369e80 (diff) |
aliasing(?) gives a ever so slightly different color on hidpi
e.g. without hidpi this could probably be reproduced with
export SAL_USE_VCLPLUGIN=gtk3
export GDK_BACKEND=x11
export GDK_SCALE=2
and CppunitTest_cppcanvas_emfplus fails with 0x00ff00 instead of 0x00fe00
Change-Id: I1ecd7dce7703ed50fe396e007424a3ec4252d063
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/qa/extras/emfplus/emfplus.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx index a3c6a674c855..61a496c84697 100644 --- a/cppcanvas/qa/extras/emfplus/emfplus.cxx +++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx @@ -84,7 +84,10 @@ void Test::testFdo77229() Bitmap aBitmap = load("fdo77229.emf"); Bitmap::ScopedReadAccess pAccess(aBitmap); // The green star was missing. - CPPUNIT_ASSERT_EQUAL(sal_uInt32(0x00fe00), Color(pAccess->GetPixel(142, 140)).GetColor()); + Color aColor(pAccess->GetPixel(142, 140)); + CPPUNIT_ASSERT_EQUAL(sal_uInt8(0), aColor.GetRed()); + CPPUNIT_ASSERT_EQUAL(sal_uInt8(0), aColor.GetBlue()); + CPPUNIT_ASSERT(aColor.GetGreen() == 0xfe || aColor.GetGreen() == 0xff); } CPPUNIT_TEST_SUITE_REGISTRATION(Test); |