From e2125bdc32ec2f09fa19433e0ee96b7a3845b69e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 16 Aug 2007 19:05:32 +0000 Subject: [PATCH] Mac fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/renderg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index 5ff309e88a..7c07f55ff1 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -678,9 +678,13 @@ wxRendererGeneric::DrawFocusRect(wxWindow* WXUNUSED(win), wxDC& dc, const wxRect dc.SetPen(m_penBlack); +#ifdef __WXMAC__ + dc.SetLogicalFunction(wxCOPY); +#else // this seems to be closer than what Windows does than wxINVERT although // I'm still not sure if it's correct dc.SetLogicalFunction(wxAND_REVERSE); +#endif wxCoord z; for ( z = x1 + 1; z < x2; z += 2 ) -- 2.45.2