summaryrefslogtreecommitdiff
path: root/test/create-from-png.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2011-10-08 13:37:20 +0200
committerUli Schlachter <psychon@znc.in>2011-10-09 09:21:13 +0200
commitb9e5cd9572c09fb34153449163945dddda59468b (patch)
tree077b0b518ba4062b9af208ca74148534f159fb64 /test/create-from-png.c
parent61fdaaf7e59a6238dec22feeed03b1a56b614a9d (diff)
downloadcairo-b9e5cd9572c09fb34153449163945dddda59468b.tar.gz
create-from-png*: Test mark_dirty with mime data
This currently hits the following assertion: lt-cairo-test-suite: cairo-surface.c:1381: cairo_surface_mark_dirty_rectangle: Assertion `! _cairo_surface_has_mime_data (surface)' failed. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41409 Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/create-from-png.c')
-rw-r--r--test/create-from-png.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/create-from-png.c b/test/create-from-png.c
index 0112fafa5..f6209568c 100644
--- a/test/create-from-png.c
+++ b/test/create-from-png.c
@@ -68,6 +68,10 @@ draw (cairo_t *cr, int width, int height)
return result;
}
+ /* Pretend we modify the surface data (which detaches the PNG mime data) */
+ cairo_surface_flush (surface);
+ cairo_surface_mark_dirty (surface);
+
cairo_set_source_surface (cr, surface, 0, 0);
cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_NEAREST);
cairo_paint (cr);