diff options
author | Carl Worth <cworth@cworth.org> | 2006-06-10 09:44:30 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-06-10 09:44:30 -0700 |
commit | 0662928e4fd7bd432fdd815b95271d5c74eaba70 (patch) | |
tree | af5a25af0fd8b3a98dcc139b124d8f47b75e8a48 /test/fallback-resolution.c | |
parent | 13ba5316fbc4b9d2aac13da644f4c87069447246 (diff) | |
download | cairo-0662928e4fd7bd432fdd815b95271d5c74eaba70.tar.gz |
Clarify that fallback_resolution acts on a per-page granularity.
This explains why the SVG result from the fallback-resolution test
doesn't actually show multiple resolutions in effect at the same time.
Diffstat (limited to 'test/fallback-resolution.c')
-rw-r--r-- | test/fallback-resolution.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c index 407290ec6..d1e7a6328 100644 --- a/test/fallback-resolution.c +++ b/test/fallback-resolution.c @@ -125,6 +125,8 @@ main (void) draw (cr, SIZE, SIZE, ppi[page]); + cairo_show_page (cr); + /* Backend-specific means of "advancing a page" */ switch (backend) { case PDF: @@ -132,9 +134,23 @@ main (void) cairo_show_page (cr); break; case SVG: + /* Since the SVG backend doesn't natively support multiple + * pages, we just move further down for each logical + * page, then finally do a show_page at the end. */ if (page < num_pages - 1) { cairo_translate (cr, 0, SIZE); } else { + /* XXX: The goal of this test is to show the + * effect of several different fallback + * resolutions in a single output document. But + * since fallback_resolution only takes effect at + * the time of show_page, we only get once for the + * SVG backend. I'm just re-setting the first one + * here so we actually get legible output. + * + * To fix this properly we'll need some sort of + * multi-page support in the SVG backend I think. + */ cairo_surface_set_fallback_resolution (surface, ppi[0], ppi[0]); cairo_show_page (cr); } |