summaryrefslogtreecommitdiff
path: root/test/fallback-resolution.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2010-11-24 21:43:07 +1030
committerAdrian Johnson <ajohnson@redneon.com>2010-11-28 03:38:42 +1030
commit126108a6ac5aa5e615071e0cbd1901e5a5de3ca6 (patch)
tree41f9eb22270720d886215c71195f79c588d67ea4 /test/fallback-resolution.c
parent59661f8af428b88125db033867d662e9393d0a41 (diff)
downloadcairo-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/fallback-resolution.c')
-rw-r--r--test/fallback-resolution.c4
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);