summaryrefslogtreecommitdiff
path: root/test/record2x.c
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-05-29 17:54:02 +0200
committerTim-Philipp Müller <tim@centricular.com>2020-07-18 19:47:17 +0100
commit4645ecf3f89de9e25fc83d7c0fdb89188de7a2a3 (patch)
treefc8e21f0bf1aae66ed836b04d7a1325232430953 /test/record2x.c
parentaee96d175d8349945a6d1948a56abd4b4ec6ad84 (diff)
downloadcairo-4645ecf3f89de9e25fc83d7c0fdb89188de7a2a3.tar.gz
record tests: fix when builddir != srcdir
When builddir != srcdir, cairo_test_create_pattern_from_png needs a non-NULL ctx to work with.
Diffstat (limited to 'test/record2x.c')
-rw-r--r--test/record2x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/record2x.c b/test/record2x.c
index 7fe037732..caca0e603 100644
--- a/test/record2x.c
+++ b/test/record2x.c
@@ -335,7 +335,7 @@ record_create (cairo_t *target)
cairo_t *cr;
surface = cairo_recording_surface_create (cairo_surface_get_content (cairo_get_target (target)), NULL);
- cr = cairo_create (surface);
+ cr = cairo_test_create (surface, cairo_test_get_context (target));
cairo_surface_destroy (surface);
return cr;