Author: pbartok
Date: 2005-05-03 15:38:48 -0400 (Tue, 03 May 2005)
New Revision: 43976
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2005-05-03 Peter Bartok <[EMAIL PROTECTED]>
* Control.cs: Modified version of Jonathan Chamber's fix for
double-buffering
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-05-03 18:04:18 UTC (rev 43975)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-05-03 19:38:48 UTC (rev 43976)
@@ -1,3 +1,8 @@
+2005-05-03 Peter Bartok <[EMAIL PROTECTED]>
+
+ * Control.cs: Modified version of Jonathan Chamber's fix for
+ double-buffering
+
2005-05-03 Jackson Harper <[EMAIL PROTECTED]>
* ListView.cs: Remove redraw variable. Control now handles whether
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2005-05-03 18:04:18 UTC (rev 43975)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2005-05-03 19:38:48 UTC (rev 43976)
@@ -3173,8 +3173,8 @@
if (!needs_redraw) {
// Just blit the previous image
- paint_event.Graphics.DrawImage
(ImageBuffer, paint_event.ClipRectangle);
- needs_redraw = false;
+ paint_event.Graphics.DrawImage
(ImageBuffer, paint_event.ClipRectangle, paint_event.ClipRectangle,
GraphicsUnit.Pixel);
+ XplatUI.PaintEventEnd(Handle);
return;
}
@@ -3190,8 +3190,9 @@
OnPaint(paint_event);
if ((control_style &
ControlStyles.DoubleBuffer) != 0) {
- dc.DrawImage (ImageBuffer,
paint_event.ClipRectangle);
+ dc.DrawImage (ImageBuffer,
paint_event.ClipRectangle, paint_event.ClipRectangle, GraphicsUnit.Pixel);
paint_event.SetGraphics (dc);
+ needs_redraw = false;
}
XplatUI.PaintEventEnd(Handle);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches