diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-05-29 17:54:02 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-07-18 19:47:17 +0100 |
commit | 4645ecf3f89de9e25fc83d7c0fdb89188de7a2a3 (patch) | |
tree | fc8e21f0bf1aae66ed836b04d7a1325232430953 /test/record2x.c | |
parent | aee96d175d8349945a6d1948a56abd4b4ec6ad84 (diff) | |
download | cairo-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.c | 2 |
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; |