From 3981139f3b33d6ba402bfdb0056312410c008ea3 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek <7330332+a-wi@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:37:58 +0200 Subject: [PATCH] Enable all tests of destroying clipping region for wxGTK --- tests/graphics/clippingbox.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/graphics/clippingbox.cpp b/tests/graphics/clippingbox.cpp index 43fa68af33..27eac78315 100644 --- a/tests/graphics/clippingbox.cpp +++ b/tests/graphics/clippingbox.cpp @@ -585,16 +585,6 @@ static void OneRegionNegDim(wxDC& dc, const wxBitmap& bmp, const wxPoint& parent static void OneRegionAndReset(wxDC& dc, const wxBitmap& bmp, const wxPoint& parentDcOrigin) { -#ifdef __WXGTK__ - if ( parentDcOrigin != wxPoint(0, 0) ) - { - // Due to the bug in resetting wxGCDC clipping region when parent wxDC is scrolled - // we need to skip test on wxGTK - WARN("Skipping test known not to work under wxGTK"); - return; - } -#endif - // Setting one clipping region and next destroy it. // Final clipping box should be the same as DC surface. dc.SetClippingRegion(10, 20, 80, 75); @@ -1323,16 +1313,6 @@ static void OneDevRegionNonRect(wxDC& dc, const wxBitmap& bmp, bool checkExtCoor static void OneDevRegionAndReset(wxDC& dc, const wxBitmap& bmp, bool checkExtCoords, bool useTransformMatrix, const wxPoint& parentDcOrigin) { -#ifdef __WXGTK__ - if ( parentDcOrigin != wxPoint(0, 0) ) - { - // Due to the bug in resetting wxGCDC clipping region when parent wxDC is scrolled - // we need to skip test on wxGTK - WARN("Skipping test known not to work under wxGTK"); - return; - } -#endif - #if wxUSE_DC_TRANSFORM_MATRIX if ( useTransformMatrix && !dc.CanUseTransformMatrix() ) return;