]> git.saurik.com Git - wxWidgets.git/commitdiff
more wxListCtrl drawing fixes - scrolling still doesn't work under wxGTK
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jul 2001 18:37:34 +0000 (18:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jul 2001 18:37:34 +0000 (18:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 725faf3c0f0a0e769f7da19dbf3e74547d1ffe76..f6a25a839febf37841e5158db7072fb3b3e2634e 100644 (file)
@@ -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();