From c20b3423a5f9229cf6dc378c978584eb0c9ae18a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 4 Jun 2008 04:35:11 +0000 Subject: [PATCH] to make sure the CG code never gets called when not in a CG-Build, as this method is only needed for dcgraph's blitting, no loss anyway git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dcclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 9812554da9..18c140f480 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -194,8 +194,7 @@ void wxWindowDC::DoGetSize( int* width, int* height ) const wxBitmap wxWindowDC::DoGetAsBitmap(const wxRect *subrect) const { - // wxScreenDC is derived from wxWindowDC, so a screen dc will - // call this method when a Blit is performed with it as a source. +#if wxMAC_USE_CORE_GRAPHICS if (!m_window) return wxNullBitmap; @@ -231,6 +230,9 @@ wxBitmap wxWindowDC::DoGetAsBitmap(const wxRect *subrect) const CGContextRestoreGState(context); return bmp; +#else + return wxNullBitmap; +#endif } /*