diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-11-29 02:48:23 +0200 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-11-29 13:17:51 +0200 |
commit | b394240941dffa263776a62cf42dc9b7e477f7a2 (patch) | |
tree | 42126b8dc12a2f0ea627da071e54958a98be88a3 /test/a1-mask.c | |
parent | 9ddf14cfd5c3bf0cf507cfc82b192f5c46f66f9a (diff) | |
download | cairo-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.c | 1 |
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 */ |