give up on GC blit if DC is in CG mode

svn: r8088
This commit is contained in:
Matthew Flatt 2007-12-21 02:54:19 +00:00
parent 4cd7477c85
commit 8c42e26cde

View File

@ -1263,6 +1263,11 @@ Bool wxCanvasDC::GCBlit(double xdest, double ydest, double width, double height,
CGrafPtr theMacGrafPort;
RgnHandle rgn;
if (cMacDC->GetCG(TRUE)) {
/* The dc is in CG mode. Too bad; just give up. */
return FALSE;
}
::GetGWorld(&savep, &savegd);
theMacGrafPort = cMacDC->macGrafPort();