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:
parent
f65b2f589f
commit
7269fba894
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user