Author: jackson
Date: 2005-05-03 12:12:53 -0400 (Tue, 03 May 2005)
New Revision: 43945
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
* ListView.cs: Remove redraw variable. Control now handles whether
or not a redraw needs to be done, and will only raise the paint
event if redrawing is needed.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-05-03 16:12:26 UTC (rev 43944)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-05-03 16:12:53 UTC (rev 43945)
@@ -1,5 +1,11 @@
2005-05-03 Jackson Harper <[EMAIL PROTECTED]>
+ * ListView.cs: Remove redraw variable. Control now handles whether
+ or not a redraw needs to be done, and will only raise the paint
+ event if redrawing is needed.
+
+2005-05-03 Jackson Harper <[EMAIL PROTECTED]>
+
* Splitter.cs: No decorations for the splitter form. Cache the
hatch brush.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2005-05-03 16:12:26 UTC (rev 43944)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2005-05-03 16:12:53 UTC (rev 43945)
@@ -77,7 +77,6 @@
private bool label_edit = false;
private bool label_wrap = true;
private bool multiselect = true;
- private bool redraw = true;
private bool scrollable = true;
private SelectedIndexCollection selected_indices;
private SelectedListViewItemCollection selected_items;
@@ -578,7 +577,6 @@
if (recalculate)
CalculateListView (this.alignment);
- redraw = true;
Refresh ();
}
@@ -1197,11 +1195,8 @@
this.Visible == false || this.updating == true)
return;
- if (redraw) {
- ThemeEngine.Current.DrawListView (pe.Graphics,
-
pe.ClipRectangle, this);
- redraw = false;
- }
+ ThemeEngine.Current.DrawListView (pe.Graphics,
+ pe.ClipRectangle, this);
// We paint on the screen as per the location set
// by the two scrollbars. In case of details view
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches