From: Vadim Zeitlin Date: Mon, 9 Jul 2001 18:37:34 +0000 (+0000) Subject: more wxListCtrl drawing fixes - scrolling still doesn't work under wxGTK X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8d813b20f78c6e24d7e0f3b8dbe8de4cb3689db4 more wxListCtrl drawing fixes - scrolling still doesn't work under wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 725faf3c0f..f6a25a839f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1522,10 +1522,12 @@ void wxListLineData::DrawInReportMode( wxDC *dc, bool highlighted ) { wxRect rect = r; - //m_owner->CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y ); +#if 0 + m_owner->CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y ); if ( !m_owner->IsExposed( rect ) ) return; +#endif // use our own flag if we maintain it if ( !IsVirtual() ) @@ -1596,15 +1598,13 @@ void wxListLineData::DrawInReportMode( wxDC *dc, int width = m_owner->GetColumnWidth(col++); - dc->SetClippingRegion(x, rect.y, width, rect.height); + wxDCClipper clipper(*dc, x, rect.y, width, rect.height); if ( item->HasText() ) { dc->DrawText( item->GetText(), x, rect.y ); } - dc->DestroyClippingRegion(); - x = xOld + width; node = node->GetNext();