Author: pbartok
Date: 2006-03-21 00:49:11 -0500 (Tue, 21 Mar 2006)
New Revision: 58214

Modified:
   trunk/libgdiplus/src/ChangeLog
   trunk/libgdiplus/src/font.c
Log:
2006-03-20  Peter Dennis Bartok  <[EMAIL PROTECTED]> 

        * font.c (gdip_cairo_ft_font_lock_face): Initialize the matrix to
          avoid using uninitialized memory in cairo



Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog      2006-03-21 02:59:24 UTC (rev 58213)
+++ trunk/libgdiplus/src/ChangeLog      2006-03-21 05:49:11 UTC (rev 58214)
@@ -1,3 +1,8 @@
+2006-03-20  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
+
+       * font.c (gdip_cairo_ft_font_lock_face): Initialize the matrix to
+         avoid using uninitialized memory in cairo
+
 2006-03-20  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * texturebrush.c: Ensure we destroy the matrix and the surface when

Modified: trunk/libgdiplus/src/font.c
===================================================================
--- trunk/libgdiplus/src/font.c 2006-03-21 02:59:24 UTC (rev 58213)
+++ trunk/libgdiplus/src/font.c 2006-03-21 05:49:11 UTC (rev 58214)
@@ -348,6 +348,8 @@
        
        options = cairo_font_options_create ();
                
+       cairo_matrix_init (&matrix1, 1, 0, 0, 1, 0, 0);
+       cairo_matrix_init (&matrix2, 1, 0, 0, 1, 0, 0);
        *scaled_ft = cairo_scaled_font_create (cairofnt,
                                              &matrix1,
                                              &matrix2,

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

Reply via email to