Author: lewing
Date: 2007-08-30 16:36:19 -0400 (Thu, 30 Aug 2007)
New Revision: 85076

Modified:
   trunk/moon/test/harness/xaml2png.cpp
Log:
Incredibly simple but lame hack to work around the png timestamp that
cairo adds.


Modified: trunk/moon/test/harness/xaml2png.cpp
===================================================================
--- trunk/moon/test/harness/xaml2png.cpp        2007-08-30 20:34:41 UTC (rev 
85075)
+++ trunk/moon/test/harness/xaml2png.cpp        2007-08-30 20:36:19 UTC (rev 
85076)
@@ -102,6 +102,7 @@
 runTest (const char *xaml_file, const char *output_prefix)
 {
        Surface *s = new Surface (TEST_WIDTH, TEST_HEIGHT);
+       GdkPixbuf *pixbuf;
        Type::Kind type;
 
        DependencyObject *dob = xaml_create_from_file (xaml_file, true, &type);
@@ -121,6 +122,11 @@
        cairo_destroy (cr);
 
        delete s;
+
+       pixbuf = gdk_pixbuf_new_from_file (output_prefix, NULL);
+       unlink (output_prefix);
+       gdk_pixbuf_save (pixbuf, output_prefix, "png", NULL, NULL);
+       g_object_unref (pixbuf);
 }
 
 int

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

Reply via email to