[gtk+] reftests: Make test runner always use image surfaces



commit cc83986eb87d582e5edc87019fe48dca85fdf4fd
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 ae41d32..0f15d6d 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]