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
This commit is contained in:
@@ -84,7 +84,10 @@ void Test::testFdo77229()
|
|||||||
Bitmap aBitmap = load("fdo77229.emf");
|
Bitmap aBitmap = load("fdo77229.emf");
|
||||||
Bitmap::ScopedReadAccess pAccess(aBitmap);
|
Bitmap::ScopedReadAccess pAccess(aBitmap);
|
||||||
// The green star was missing.
|
// 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);
|
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
|
||||||
|
Reference in New Issue
Block a user