[gtk+/wip/css: 32/37] reftests: Make test runner always use image surfaces



commit f6cb8e5123d73c84855724693519a844354d8020
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jan 17 17:06:09 2012 +0100

    reftests: Make test runner always use image surfaces
    
    See comment in code for why.

 tests/reftests/gtk-reftest.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/gtk-reftest.c b/tests/reftests/gtk-reftest.c
index 5b002f1..09e9578 100644
--- a/tests/reftests/gtk-reftest.c
+++ b/tests/reftests/gtk-reftest.c
@@ -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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]