diff options
author | Carl Worth <cworth@cworth.org> | 2006-04-24 14:50:52 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-04-24 14:50:52 -0700 |
commit | 893239248a9a6ef1a7b9f770aec334f20c5c0861 (patch) | |
tree | 2138215147919f3c78c7a69736c2ff82d5e04340 /test/source-surface-scale-paint.c | |
parent | 28e25e1cce0a4e4c612743effb8927c5cb6b3c5b (diff) |
Prefer RGB24 over ARGB32 for source surfaces in tests.
Some tests were using source surfaces created as ARGB32 even though all
alpha values are entirely opaque. This meant these tests were triggering
more fallbacks than strictly necessary for what the tests are ttrying to
do.
Diffstat (limited to 'test/source-surface-scale-paint.c')
-rw-r--r-- | test/source-surface-scale-paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/source-surface-scale-paint.c b/test/source-surface-scale-paint.c index e5676c94..472630ca 100644 --- a/test/source-surface-scale-paint.c +++ b/test/source-surface-scale-paint.c @@ -44,7 +44,7 @@ draw (cairo_t *cr, int width, int height) }; surface = cairo_image_surface_create_for_data ((unsigned char *) data, - CAIRO_FORMAT_ARGB32, 4, 4, 16); + CAIRO_FORMAT_RGB24, 4, 4, 16); cairo_set_source_surface (cr, surface, 2, 2); cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_NEAREST); |