Selected images now differentiated in wxOSX/Cocoa

This commit is contained in:
JulianSmart
2015-12-15 12:37:06 +00:00
parent 24580198b8
commit e27027a1dd

View File

@@ -12758,7 +12758,13 @@ bool wxRichTextImage::Draw(wxDC& dc, wxRichTextDrawingContext& context, const wx
{ {
wxCheckSetBrush(dc, *wxBLACK_BRUSH); wxCheckSetBrush(dc, *wxBLACK_BRUSH);
wxCheckSetPen(dc, *wxBLACK_PEN); wxCheckSetPen(dc, *wxBLACK_PEN);
#if defined(__WXMAC__) && wxOSX_USE_COCOA
dc.SetLogicalFunction(wxXOR);
#else
dc.SetLogicalFunction(wxINVERT); dc.SetLogicalFunction(wxINVERT);
#endif
#ifdef __WXMAC__ #ifdef __WXMAC__
if (m_imageCache.IsOk()) if (m_imageCache.IsOk())
dc.DrawBitmap(m_imageCache, contentRect.x, contentRect.y, true); dc.DrawBitmap(m_imageCache, contentRect.x, contentRect.y, true);