summaryrefslogtreecommitdiff
path: root/test/large-source.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/large-source.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/large-source.c')
-rw-r--r--test/large-source.c2
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 */