diff --git a/tests/graphics/graphbitmap.cpp b/tests/graphics/graphbitmap.cpp index 1e63e40b47..f1574491ab 100644 --- a/tests/graphics/graphbitmap.cpp +++ b/tests/graphics/graphbitmap.cpp @@ -338,6 +338,9 @@ TEST_CASE("GraphicsBitmapTestCase::Create", "[graphbitmap][create]") #if wxUSE_GRAPHICS_DIRECT2D SECTION("Direct2D GC") { + if ( wxIsRunningUnderWine() ) + return; + wxGraphicsRenderer* gr = wxGraphicsRenderer::GetDirect2DRenderer(); REQUIRE(gr != NULL); CheckCreateGraphBitmap(gr, bmp, image); @@ -445,6 +448,9 @@ TEST_CASE("GraphicsBitmapTestCase::Create", "[graphbitmap][create]") #if wxUSE_GRAPHICS_DIRECT2D SECTION("Direct2D GC") { + if ( wxIsRunningUnderWine() ) + return; + wxGraphicsRenderer* gr = wxGraphicsRenderer::GetDirect2DRenderer(); REQUIRE(gr != NULL); CheckCreateGraphBitmap(gr, bmp, image); @@ -550,6 +556,9 @@ TEST_CASE("GraphicsBitmapTestCase::Create", "[graphbitmap][create]") #if wxUSE_GRAPHICS_DIRECT2D SECTION("Direct2D GC") { + if ( wxIsRunningUnderWine() ) + return; + wxGraphicsRenderer* gr = wxGraphicsRenderer::GetDirect2DRenderer(); REQUIRE(gr != NULL); CheckCreateGraphBitmap(gr, bmp, image); @@ -665,6 +674,9 @@ TEST_CASE("GraphicsBitmapTestCase::SubBitmap", "[graphbitmap][subbitmap][create] #if wxUSE_GRAPHICS_DIRECT2D SECTION("Direct2D GC") { + if ( wxIsRunningUnderWine() ) + return; + wxGraphicsRenderer* gr = wxGraphicsRenderer::GetDirect2DRenderer(); REQUIRE(gr != NULL); CheckCreateGraphSubBitmap(gr, bmp, subX, subY, subW, subH, image); @@ -796,6 +808,9 @@ TEST_CASE("GraphicsBitmapTestCase::SubBitmap", "[graphbitmap][subbitmap][create] #if wxUSE_GRAPHICS_DIRECT2D SECTION("Direct2D GC") { + if ( wxIsRunningUnderWine() ) + return; + wxGraphicsRenderer* gr = wxGraphicsRenderer::GetDirect2DRenderer(); REQUIRE(gr != NULL); CheckCreateGraphSubBitmap(gr, bmp, subX, subY, subW, subH, image); @@ -909,6 +924,9 @@ TEST_CASE("GraphicsBitmapTestCase::SubBitmap", "[graphbitmap][subbitmap][create] #if wxUSE_GRAPHICS_DIRECT2D SECTION("Direct2D GC") { + if ( wxIsRunningUnderWine() ) + return; + wxGraphicsRenderer* gr = wxGraphicsRenderer::GetDirect2DRenderer(); REQUIRE(gr != NULL); CheckCreateGraphSubBitmap(gr, bmp, subX, subY, subW, subH, image); diff --git a/tests/graphics/graphpath.cpp b/tests/graphics/graphpath.cpp index 26fd0377be..723ffd65fb 100644 --- a/tests/graphics/graphpath.cpp +++ b/tests/graphics/graphpath.cpp @@ -51,6 +51,9 @@ TEST_CASE("GraphicsPathTestCaseGDIPlus", "[path][gdi+]") #if wxUSE_GRAPHICS_DIRECT2D TEST_CASE("GraphicsPathTestCaseDirect2D", "[path][d2d]") { + if ( wxIsRunningUnderWine() ) + return; + wxBitmap bmp(500, 500); wxMemoryDC mdc(bmp); wxScopedPtr gc(wxGraphicsRenderer::GetDirect2DRenderer()->CreateContext(mdc));