[cairo-commit] test/cairo-test.c

Carl Worth cworth at kemper.freedesktop.org
Tue Aug 8 01:39:22 PDT 2006


 test/cairo-test.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

New commits:
diff-tree cb5edb6c35f7c80d1f91172b98f25ee33f21bce9 (from f089a07679535959fe7b12acb0550ff16d560788)
Author: Carl Worth <cworth at cworth.org>
Date:   Tue Aug 8 01:38:24 2006 -0700

    Eliminate warning due to the test suite's private 'FLATTENEND' format value

diff --git a/test/cairo-test.c b/test/cairo-test.c
index fddf5fe..5f21bbf 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -224,11 +224,16 @@ typedef struct _cairo_test_target
 static const char *
 _cairo_test_content_name (cairo_content_t content)
 {
+    /* For the purpose of the content name, we don't distinguish the
+     * flattened content value.
+     */
+    if (content == CAIRO_TEST_CONTENT_COLOR_ALPHA_FLATTENED)
+	content = CAIRO_CONTENT_COLOR_ALPHA;
+
     switch (content) {
     case CAIRO_CONTENT_COLOR:
 	return "rgb24";
     case CAIRO_CONTENT_COLOR_ALPHA:
-    case CAIRO_TEST_CONTENT_COLOR_ALPHA_FLATTENED:
 	return "argb32";
     case CAIRO_CONTENT_ALPHA:
     default:


More information about the cairo-commit mailing list