Author: jackson
Date: 2005-04-27 13:00:27 -0400 (Wed, 27 Apr 2005)
New Revision: 43667

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
        * Control.cs: Make sure that the first WM_PAINT does a full draw,
        not just a blit.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-27 16:45:08 UTC (rev 43666)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-27 17:00:27 UTC (rev 43667)
@@ -1,3 +1,8 @@
+2005-04-27  Jackson Harper  <[EMAIL PROTECTED]>
+
+       * Control.cs: Make sure that the first WM_PAINT does a full draw,
+       not just a blit.
+
 2005-04-26  Jordi Mas i Hernandez <[EMAIL PROTECTED]>
 
        * ComboBox.cs: Databinding support fixes, fire missing events

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2005-04-27 16:45:08 UTC (rev 43666)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2005-04-27 17:00:27 UTC (rev 43667)
@@ -111,7 +111,7 @@
 
                private Graphics                dc_mem;                 // 
Graphics context for double buffering
                private Bitmap                  bmp_mem;                // 
Bitmap for double buffering control
-               private bool                    needs_redraw;
+               private bool                    needs_redraw = true;
 
                private ControlBindingsCollection data_bindings;
 
@@ -3171,7 +3171,7 @@
 
                                        paint_event = 
XplatUI.PaintEventStart(Handle);
 
-                                        if (!needs_redraw) {
+                                       if (!needs_redraw) {
                                                // Just blit the previous image
                                                paint_event.Graphics.DrawImage 
(ImageBuffer, paint_event.ClipRectangle);
                                                needs_redraw = false;
@@ -3195,7 +3195,7 @@
                                        }
 
                                        XplatUI.PaintEventEnd(Handle);
-                                       
+
                                        if (!GetStyle(ControlStyles.UserPaint)) 
{
                                                DefWndProc(ref m);
                                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to