summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-10-02 10:41:02 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-10-02 10:42:34 +0200
commita282c9700806bc17710e8b2186b306d2a90928ee (patch)
treecb8dbc70ed8b70ffb1dc380864f36c7595521f30
parente1ac2a940389f52e28264a623a6620a7a0d94d57 (diff)
fix SkiaTest::testDrawShaders()
The left and bottom edges are actually also edges between colors in the original bitmap. Change-Id: I36eb3c234eb3a0e99cb5836e1e7f0c7c13c620fd
-rw-r--r--vcl/qa/cppunit/skia/skia.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/qa/cppunit/skia/skia.cxx b/vcl/qa/cppunit/skia/skia.cxx
index 28591d807bb1..439440962b44 100644
--- a/vcl/qa/cppunit/skia/skia.cxx
+++ b/vcl/qa/cppunit/skia/skia.cxx
@@ -163,11 +163,11 @@ void SkiaTest::testDrawShaders()
CPPUNIT_ASSERT_EQUAL(COL_WHITE, deviceLarge->GetPixel(Point(110, 110)));
// Don't test colors near the edge between the colors, smoothscaling affects them.
const int diff = 3;
- CPPUNIT_ASSERT_EQUAL(resultRed, deviceLarge->GetPixel(Point(50, 89 - diff)));
- CPPUNIT_ASSERT_EQUAL(resultBlue, deviceLarge->GetPixel(Point(50, 90 + diff)));
- CPPUNIT_ASSERT_EQUAL(resultBlue, deviceLarge->GetPixel(Point(69 - diff, 100)));
- CPPUNIT_ASSERT_EQUAL(resultRed, deviceLarge->GetPixel(Point(70 + diff, 100)));
- CPPUNIT_ASSERT_EQUAL(resultBlue, deviceLarge->GetPixel(Point(50, 100)));
+ CPPUNIT_ASSERT_EQUAL(resultRed, deviceLarge->GetPixel(Point(50 + diff, 89 - diff)));
+ CPPUNIT_ASSERT_EQUAL(resultBlue, deviceLarge->GetPixel(Point(50 + diff, 90 + diff)));
+ CPPUNIT_ASSERT_EQUAL(resultBlue, deviceLarge->GetPixel(Point(69 - diff, 100 - diff)));
+ CPPUNIT_ASSERT_EQUAL(resultRed, deviceLarge->GetPixel(Point(70 + diff, 100 - diff)));
+ CPPUNIT_ASSERT_EQUAL(resultBlue, deviceLarge->GetPixel(Point(50 + diff, 100 - diff)));
device->Erase();
}