From: Vadim Zeitlin Date: Tue, 10 Nov 2009 17:42:04 +0000 (+0000) Subject: Don't overwrite background in custom renderer in OSX/Cocoa. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/508f680769ce76639958e37eb74a60be96bcda59 Don't overwrite background in custom renderer in OSX/Cocoa. Erasing background seems to be unnecessary and was actively harmful for the selected items which didn't appear with the correct background colour. Just don't do it at all. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index f9ab19374e..c40c492e40 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -1104,10 +1104,6 @@ outlineView:(NSOutlineView*)outlineView wxDataViewCustomRenderer * const renderer = obj->customRenderer; - // draw its own background: - [[self backgroundColor] set]; - NSRectFill(cellFrame); - wxDC * const dc = renderer->GetDC(); renderer->WXCallRender(wxFromNSRect(controlView, cellFrame), dc, 0); renderer->SetDC(NULL);