Author: gnorton
Date: 2008-01-16 14:56:29 -0500 (Wed, 16 Jan 2008)
New Revision: 93088

Modified:
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs
Log:
In .:
2008-01-06  Geoff Norton  <[EMAIL PROTECTED]>

        * ControlHandler.cs:  Flicker be gone!  Generate our messages in
        AddExpose instead of trusting apples compositing manager which doesn't
        work for our use case.



Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog
 2008-01-16 19:46:36 UTC (rev 93087)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ChangeLog
 2008-01-16 19:56:29 UTC (rev 93088)
@@ -1,3 +1,9 @@
+2008-01-06  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * ControlHandler.cs:  Flicker be gone!  Generate our messages in
+       AddExpose instead of trusting apples compositing manager which doesn't
+       work for our use case.
+
 2008-01-16  Geoff Norton  <[EMAIL PROTECTED]>
 
        * ControlHandler.cs:  Dont send another invalidate when carbon

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs
 2008-01-16 19:46:36 UTC (rev 93087)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/ControlHandler.cs
 2008-01-16 19:56:29 UTC (rev 93088)
@@ -130,8 +130,6 @@
                                                HIViewGetBounds (handle, ref 
bounds);
                                        }
 
-                                       Driver.AddExpose (hwnd, client, bounds, 
false);
-
                                        if (!hwnd.visible) {
                                                if (client) {
                                                        hwnd.expose_pending = 
false;
@@ -141,24 +139,12 @@
                                                 return false;
                                        }
 
-                                       if (client) {
-                                               if (!hwnd.expose_pending) {
-                                                       return false;
-                                               }
-                                                msg.message = Msg.WM_PAINT;
-                                       } else {
-                                               if (!hwnd.nc_expose_pending) {
-                                                       return false;
-                                               }
-                                               //DrawBackground here
+                                       if (!client) {
                                                DrawBorders (hwnd);
-                                               Region region = new Region 
(hwnd.Invalid);
-                                               IntPtr hrgn = region.GetHrgn 
(null); // Graphics object isn't needed
-                                               msg.message = Msg.WM_NCPAINT;
-                                               msg.wParam = hrgn == 
IntPtr.Zero ? (IntPtr)1 : hrgn;
-                                               msg.refobject = region;
-                                               
                                        }
+
+                                       Driver.AddExpose (hwnd, client, bounds);
+
                                        return true;
                                }
                                case kEventControlVisibilityChanged: {

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

Reply via email to