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

This commit is contained in:
Carl Worth 2006-08-08 01:38:24 -07:00
parent f089a07679
commit cb5edb6c35

View file

@ -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: