]> Pileus Git - ~andy/gtk/commitdiff
reftests: Make test runner always use image surfaces
authorBenjamin Otte <otte@redhat.com>
Tue, 17 Jan 2012 16:06:09 +0000 (17:06 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 2 Feb 2012 02:14:01 +0000 (03:14 +0100)
See comment in code for why.

tests/reftests/gtk-reftest.c

index ae41d32010321512f4c2ab44e89006e6566051af..0f15d6dc4f161cfb5cff689a47ace30773196b85 100644 (file)
@@ -568,6 +568,12 @@ add_tests_for_files_in_directory (GFile *dir)
 int
 main (int argc, char **argv)
 {
+  /* I don't want to fight fuzzy scaling algorithms in GPUs,
+   * so unles you explicitly set it to something else, we
+   * will use Cairo's image surface.
+   */
+  g_setenv ("GDK_RENDERING", "image", FALSE);
+
   if (!parse_command_line (&argc, &argv))
     return 1;