From 874da289efc4272646a78317f9e18a3c1d36c01c Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 16 Jul 2016 23:00:30 +0200 Subject: [PATCH] Modified parameters in clipping box tests. Some coordinates of clipping regions given in device coordinates has to be slightly modified to avoid rounding errors in conversions from device to logical coordinates. --- tests/graphics/clippingbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/graphics/clippingbox.cpp b/tests/graphics/clippingbox.cpp index d42f03d94d..1426fe51fc 100644 --- a/tests/graphics/clippingbox.cpp +++ b/tests/graphics/clippingbox.cpp @@ -966,7 +966,7 @@ void ClippingBoxTestCaseBase::TwoDevRegionsOverlapping() // Setting one clipping region in device coordinates // and next another region in device coordinates (partially overlapping). // Final clipping box should be an intersection of these two regions. - wxRect r1(30, 40, 40, 30); + wxRect r1(30, 39, 40, 30); wxRect r2(60, 51, 40, 30); wxRect r = r1.Intersect(r2); wxASSERT( !r.IsEmpty() ); @@ -999,7 +999,7 @@ void ClippingBoxTestCaseBase::TwoDevRegionsOverlappingNegDim() const int h1 = -75; const int x2 = 20; - const int y2 = 5; + const int y2 = 6; const int w2 = 40; const int h2 = 30; wxClipRect r1(x1, y1, w1, h1);