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
This commit is contained in:
Stefan Csomor
2008-06-04 04:35:11 +00:00
parent dbdb570aef
commit c20b3423a5

View File

@@ -194,8 +194,7 @@ void wxWindowDC::DoGetSize( int* width, int* height ) const
wxBitmap wxWindowDC::DoGetAsBitmap(const wxRect *subrect) const wxBitmap wxWindowDC::DoGetAsBitmap(const wxRect *subrect) const
{ {
// wxScreenDC is derived from wxWindowDC, so a screen dc will #if wxMAC_USE_CORE_GRAPHICS
// call this method when a Blit is performed with it as a source.
if (!m_window) if (!m_window)
return wxNullBitmap; return wxNullBitmap;
@@ -231,6 +230,9 @@ wxBitmap wxWindowDC::DoGetAsBitmap(const wxRect *subrect) const
CGContextRestoreGState(context); CGContextRestoreGState(context);
return bmp; return bmp;
#else
return wxNullBitmap;
#endif
} }
/* /*