summaryrefslogtreecommitdiff
path: root/test/a1-mask.c
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-11-29 02:48:23 +0200
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-11-29 13:17:51 +0200
commitb394240941dffa263776a62cf42dc9b7e477f7a2 (patch)
tree42126b8dc12a2f0ea627da071e54958a98be88a3 /test/a1-mask.c
parent9ddf14cfd5c3bf0cf507cfc82b192f5c46f66f9a (diff)
downloadcairo-b394240941dffa263776a62cf42dc9b7e477f7a2.tar.gz
[test] Add missing mark_dirty() calls to test cases.
A recent optimisation has added a flag to the image surface which is used to track whether the surface is clear or not. This makes it imperative that clients call cairo_surface_mark_dirty() if they use cairo to allocate their pixel buffers and then proceed to initialize them without telling cairo about it.
Diffstat (limited to 'test/a1-mask.c')
-rw-r--r--test/a1-mask.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/a1-mask.c b/test/a1-mask.c
index 0be1d07b7..c52aa9dd9 100644
--- a/test/a1-mask.c
+++ b/test/a1-mask.c
@@ -125,6 +125,7 @@ draw (cairo_t *cr, int dst_width, int dst_height)
dst += stride;
}
}
+ cairo_surface_mark_dirty (surface);
/* Paint background blue */
cairo_set_source_rgb (cr, 0, 0, 1); /* blue */