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:
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user