From 511c456b725b9f7e8803be4d69ec5b5ece317045 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 16 Aug 2007 19:04:32 +0000 Subject: [PATCH] wxMac doesn't like wxAND_REVERSE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 08f5caa01a..4eccf3e241 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -162,9 +162,13 @@ static void DrawFocusRect(wxWindow* win, wxDC& dc, const wxRect& rect, int flags dc.SetPen(*wxBLACK_PEN); +#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 )