summaryrefslogtreecommitdiff
path: root/test/buffer-diff.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-05-04 01:45:41 -0700
committerCarl Worth <cworth@cworth.org>2006-05-04 01:45:41 -0700
commita6b1b014bbd12be0f20c44d38d8847181be6d3ae (patch)
treece01dacaf9262eb98aa365d960cb19a1a1552e5e /test/buffer-diff.c
parent40b39dddf9cd919fb2f456a8e296a60cc8296fbf (diff)
Implement the device_offset functionality at surface, not gstate layer
This is a mega-patch that has the advantage that the entire test suite passes both immediately before and immediately after this commit. The disadvantage of the mega-patch is that it does not reflect the development history of the device-offset branch, (with its various fumblings and flailings). To capture that history, we will next merge in that branch.
Diffstat (limited to 'test/buffer-diff.c')
-rw-r--r--test/buffer-diff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/buffer-diff.c b/test/buffer-diff.c
index c62c44ef..89af811c 100644
--- a/test/buffer-diff.c
+++ b/test/buffer-diff.c
@@ -287,9 +287,9 @@ image_diff_flattened (const char *filename_a,
b_flat_surface = cairo_image_surface_create_for_data (b_flat,
CAIRO_FORMAT_ARGB32,
- width_a, height_a,
- stride_a);
- /*cairo_surface_set_device_offset (b_flat_surface, -bx, -by);*/
+ width_b, height_b,
+ stride_b);
+ cairo_surface_set_device_offset (b_flat_surface, -bx, -by);
cr = cairo_create (b_flat_surface);
@@ -306,7 +306,7 @@ image_diff_flattened (const char *filename_a,
b_flat,
buf_diff,
width_a, height_a,
- stride_a, stride_a, stride_a);
+ stride_a, stride_b, stride_a);
if (pixels_changed) {
FILE *png_file = fopen (filename_diff, "wb");