Author: gnorton
Date: 2007-10-18 15:38:25 -0400 (Thu, 18 Oct 2007)
New Revision: 87791

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs
Log:
2007-10-17  Geoff Norton  <[EMAIL PROTECTED]>

    * Graphics.cs: Only synchronize the display on Flush when we actually have
    a CGContext



Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2007-10-18 
19:34:27 UTC (rev 87790)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2007-10-18 
19:38:25 UTC (rev 87791)
@@ -1,5 +1,10 @@
 2007-10-17  Geoff Norton  <[EMAIL PROTECTED]>
 
+       * Graphics.cs: Only synchronize the display on Flush when we actually 
have
+       a CGContext
+
+2007-10-17  Geoff Norton  <[EMAIL PROTECTED]>
+
        * carbonFunctions.cs: Initial support for clipping children out of the
        CGContext before drawing on it.
 

Modified: trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs   2007-10-18 
19:34:27 UTC (rev 87790)
+++ trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs   2007-10-18 
19:38:25 UTC (rev 87791)
@@ -1658,7 +1658,7 @@
 
                        Status status = GDIPlus.GdipFlush (nativeObject, 
intention);
                         GDIPlus.CheckStatus (status);                    
-                       if (GDIPlus.UseQuartzDrawable || 
GDIPlus.UseCocoaDrawable)
+                       if ((GDIPlus.UseQuartzDrawable || 
GDIPlus.UseCocoaDrawable) && GDIPlus.Display != IntPtr.Zero)
                                Carbon.CGContextSynchronize (GDIPlus.Display);
                }
 

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

Reply via email to