Compensate for lack of bitmap inversion on Mac when selecting content.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2014-08-28 08:31:51 +00:00
parent f65b2f589f
commit 7269fba894

View File

@ -12522,6 +12522,10 @@ bool wxRichTextImage::Draw(wxDC& dc, wxRichTextDrawingContext& context, const wx
wxCheckSetBrush(dc, *wxBLACK_BRUSH);
wxCheckSetPen(dc, *wxBLACK_PEN);
dc.SetLogicalFunction(wxINVERT);
#ifdef __WXMAC__
if (m_imageCache.IsOk())
dc.DrawBitmap(m_imageCache, contentRect.x, contentRect.y, true);
#endif
dc.DrawRectangle(contentRect);
dc.SetLogicalFunction(wxCOPY);
}