]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't overwrite background in custom renderer in OSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Nov 2009 17:42:04 +0000 (17:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Nov 2009 17:42:04 +0000 (17:42 +0000)
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

src/osx/cocoa/dataview.mm

index f9ab19374e274d9cb437e7264e244362477bb68a..c40c492e4043acf6e544e39de6b5daa21ac82154 100644 (file)
@@ -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);