Selected images now differentiated in wxOSX/Cocoa
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user