X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f67d53729164f54dd65540d4622eee47d47c6fe..88f67c2242209b8a752b515fdec30fd6ef858a18:/wxPython/src/pseudodc.cpp diff --git a/wxPython/src/pseudodc.cpp b/wxPython/src/pseudodc.cpp index b904cef98d..02788b1fb1 100644 --- a/wxPython/src/pseudodc.cpp +++ b/wxPython/src/pseudodc.cpp @@ -561,8 +561,14 @@ PyObject *wxPseudoDC::FindObjects(wxCoord x, wxCoord y, memdc.SetPen(bgpen); memdc.DrawRectangle(viewrect); memdc.SetLogicalFunction(wxCOPY); +#ifdef __WXMAC__ + // wxAND is not supported on wxMac, but it doesn't seem to + // hurt anything to use wxCOPY instead... + memdc.Blit(x-radius,y-radius,2*radius,2*radius,&maskdc,0,0,wxCOPY); +#else // AND with circle bitmap memdc.Blit(x-radius,y-radius,2*radius,2*radius,&maskdc,0,0,wxAND); +#endif // clear and update rgn2 memdc.SelectObject(wxNullBitmap); rgn2.Clear();