Author: spouliot
Date: 2006-06-02 10:24:44 -0400 (Fri, 02 Jun 2006)
New Revision: 61406

Modified:
   trunk/libgdiplus/src/ChangeLog
   trunk/libgdiplus/src/graphics-path.c
Log:
graphics-path.c: Changed GdipWidenPath and GdipWrapPath to show a warning and 
return Ok instead of NotImplemented (to avoid crash in PDN).

Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog      2006-06-02 13:37:45 UTC (rev 61405)
+++ trunk/libgdiplus/src/ChangeLog      2006-06-02 14:24:44 UTC (rev 61406)
@@ -1,3 +1,9 @@
+2006-06-02  Sebastien Pouliot  <[EMAIL PROTECTED]> 
+
+       * graphics-path.c: Changed GdipWidenPath and GdipWrapPath to show a
+       warning and return Ok instead of NotImplemented (to avoid crash in 
+       PDN).
+
 2006-06-01  Sebastien Pouliot  <[EMAIL PROTECTED]> 
 
        * general.c: FcFini was introduced in fontconfig 2.2.91 and we support

Modified: trunk/libgdiplus/src/graphics-path.c
===================================================================
--- trunk/libgdiplus/src/graphics-path.c        2006-06-02 13:37:45 UTC (rev 
61405)
+++ trunk/libgdiplus/src/graphics-path.c        2006-06-02 14:24:44 UTC (rev 
61406)
@@ -1535,6 +1535,7 @@
 GpStatus 
 GdipWidenPath (GpPath *nativePath, GpPen *pen, GpMatrix *matrix, float 
flatness)
 {
+       static int called = 0;
        GpStatus status;
 
        if (!nativePath || !pen)
@@ -1555,7 +1556,11 @@
 
        /* TODO outer path (twice the number of points as the prepared path) */
 
-       return NotImplemented;
+       if (!called) {
+               g_warning ("NOT IMPLEMENTED: GdipWidenPath");
+               called = 1;
+       }
+       return Ok;
 }
 
 /* MonoTODO */
@@ -1564,6 +1569,7 @@
               float srcx, float srcy, float srcwidth, float srcheight,
               WarpMode warpMode, float flatness)
 {
+       static int called = 0;
        GpStatus status;
 
        if (!path || !points || (count < 1))
@@ -1584,7 +1590,11 @@
 
        /* TODO */
 
-       return NotImplemented;
+       if (!called) {
+               g_warning ("NOT IMPLEMENTED: GdipWarpPath");
+               called = 1;
+       }
+       return Ok;
 }
 
 GpStatus 

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

Reply via email to