diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2010-11-24 21:43:07 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2010-11-28 03:38:42 +1030 |
commit | 126108a6ac5aa5e615071e0cbd1901e5a5de3ca6 (patch) | |
tree | 41f9eb22270720d886215c71195f79c588d67ea4 /test | |
parent | 59661f8af428b88125db033867d662e9393d0a41 (diff) | |
download | cairo-126108a6ac5aa5e615071e0cbd1901e5a5de3ca6.tar.gz |
Boilerplate: Set fallback resolution using force_fallbacks function
cairo_set_fallback_resolution() does not work when testing rgb24 surfaces
Diffstat (limited to 'test')
-rw-r--r-- | test/fallback-resolution.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c index 8ae952ae9..c122dea85 100644 --- a/test/fallback-resolution.c +++ b/test/fallback-resolution.c @@ -444,15 +444,13 @@ preamble (cairo_test_context_t *ctx) fflush (stdout); if (target->force_fallbacks != NULL) - target->force_fallbacks (surface, ~0U); + target->force_fallbacks (surface, ppi[n].x, ppi[n].y); cr = cairo_create (surface); #if SET_TOLERANCE cairo_set_tolerance (cr, 3.0); #endif cairo_surface_set_device_offset (surface, 25, 25); - cairo_surface_set_fallback_resolution (surface, - ppi[n].x, ppi[n].y); cairo_save (cr); { cairo_set_source_rgb (cr, 1, 1, 1); |