diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-02 13:58:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-02 13:59:54 +0100 |
commit | c7bc12848a63f917a2f783f346284bd376ab4479 (patch) | |
tree | 86e48004ea74c62d5ef2a1baa98f9625aeefea4b /vcl/qa/cppunit | |
parent | 63fbe59d054a99224dac5fa25ff1a16890365746 (diff) |
Blue works better on Mac than green
...for whatever reason, the CPPUNIT_ASSERT_EQUALs failed with 0x057F00 !=
0x008000 for COL_GREEN, but appear to work fine for COL_BLUE.
Change-Id: I1a5817fc89feff66ceb352d0cf44f9ce2be7908a
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/outdev.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/outdev.cxx b/vcl/qa/cppunit/outdev.cxx index 992ceeaf5cab..a22f8dcd3f7a 100644 --- a/vcl/qa/cppunit/outdev.cxx +++ b/vcl/qa/cppunit/outdev.cxx @@ -36,7 +36,7 @@ void VclOutdevTest::testVirtualDevice() aVDev.SetOutputSizePixel(Size(32,32)); aVDev.SetBackground(Wallpaper(COL_WHITE)); aVDev.Erase(); - aVDev.DrawPixel(Point(1,2),COL_GREEN); + aVDev.DrawPixel(Point(1,2),COL_BLUE); aVDev.DrawPixel(Point(31,30),COL_RED); Size aSize = aVDev.GetOutputSizePixel(); @@ -57,14 +57,14 @@ void VclOutdevTest::testVirtualDevice() #endif CPPUNIT_ASSERT_EQUAL(COL_WHITE, aVDev.GetPixel(Point(0,0)).GetColor()); - CPPUNIT_ASSERT_EQUAL(COL_GREEN, aVDev.GetPixel(Point(1,2)).GetColor()); + CPPUNIT_ASSERT_EQUAL(COL_BLUE, aVDev.GetPixel(Point(1,2)).GetColor()); CPPUNIT_ASSERT_EQUAL(COL_RED, aVDev.GetPixel(Point(31,30)).GetColor()); CPPUNIT_ASSERT_EQUAL(COL_WHITE, aVDev.GetPixel(Point(30,31)).GetColor()); // Gotcha: y and x swap for BitmapReadAccess: deep joy. Bitmap::ScopedReadAccess pAcc(aBmp); CPPUNIT_ASSERT_EQUAL(COL_WHITE, Color(pAcc->GetPixel(0,0)).GetColor()); - CPPUNIT_ASSERT_EQUAL(COL_GREEN, Color(pAcc->GetPixel(2,1)).GetColor()); + CPPUNIT_ASSERT_EQUAL(COL_BLUE, Color(pAcc->GetPixel(2,1)).GetColor()); CPPUNIT_ASSERT_EQUAL(COL_RED, Color(pAcc->GetPixel(30,31)).GetColor()); CPPUNIT_ASSERT_EQUAL(COL_WHITE, Color(pAcc->GetPixel(31,30)).GetColor()); |