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/large-source.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/large-source.c')
-rw-r--r-- | test/large-source.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/large-source.c b/test/large-source.c index b02b493a5..2b6b84fb4 100644 --- a/test/large-source.c +++ b/test/large-source.c @@ -62,6 +62,7 @@ draw (cairo_t *cr, int width, int height) data[x] = RED_MASK; data += stride; } + cairo_surface_mark_dirty (surface); } cairo_set_source_rgb (cr, 1, 0, 0); /* red */ @@ -81,6 +82,7 @@ draw (cairo_t *cr, int width, int height) data[x] = GREEN_MASK; data += stride; } + cairo_surface_mark_dirty (surface); } cairo_set_source_rgb (cr, 0, 1, 0); /* green */ |