Blind fix for !CG

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-06-03 10:18:20 +00:00
parent 1736ea5474
commit 082d227991

View File

@@ -79,6 +79,7 @@ wxScreenDC::~wxScreenDC()
wxBitmap wxScreenDC::DoGetAsBitmap(const wxRect *subrect) const
{
#if wxMAC_USE_CORE_GRAPHICS
CGRect srcRect = CGRectMake(0, 0, m_width, m_height);
if (subrect)
{
@@ -107,6 +108,9 @@ wxBitmap wxScreenDC::DoGetAsBitmap(const wxRect *subrect) const
CGContextDrawImage(context, srcRect, image);
CGContextRestoreGState(context);
return bmp;
#else
return wxNullBitmap;
#endif
}