use buffered DC again

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-12-08 10:39:12 +00:00
parent 77325c7088
commit 76f1eb7e1f

View File

@@ -2276,8 +2276,7 @@ void wxDataViewMainWindow::ScrollTo( int rows, int column )
void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
{
wxDataViewModel *model = GetOwner()->GetModel();
//wxAutoBufferedPaintDC dc( this );
wxPaintDC dc(this);
wxAutoBufferedPaintDC dc( this );
// prepare the DC
dc.SetBackground(GetBackgroundColour());