diff options
author | Carl Worth <cworth@cworth.org> | 2005-08-31 19:11:22 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-08-31 19:11:22 +0000 |
commit | 0f4beab5070ce6f7129ca52953eb002ac7f40b93 (patch) | |
tree | 2c3e899ecf0a592cc7ad38fad5a7aea8107e5542 /test/create-from-png-stream.c | |
parent | f25ebec368caa6b88d39a5c42cd48b8459396505 (diff) | |
download | cairo-0f4beab5070ce6f7129ca52953eb002ac7f40b93.tar.gz |
Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason).
Note reason for expected failure.
src/cairo-scaled-font.c: Add an optional text_to_glyphs() virtual function that the backend can implement instead of ucs4_to_index().
Protect inclusion of fontconfig.h with HAVE_FCFINI.
Diffstat (limited to 'test/create-from-png-stream.c')
-rw-r--r-- | test/create-from-png-stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/create-from-png-stream.c b/test/create-from-png-stream.c index 75c70a563..e4bcda80d 100644 --- a/test/create-from-png-stream.c +++ b/test/create-from-png-stream.c @@ -32,8 +32,8 @@ #define HEIGHT 2 cairo_test_t test = { - "create-from-png", - "Tests the creation of an image surface from a PNG file", + "create-from-png-stream", + "Tests the creation of an image surface from a PNG using a FILE *", WIDTH, HEIGHT }; @@ -61,7 +61,7 @@ draw (cairo_t *cr, int width, int height) xasprintf (&filename, "%s/%s", srcdir ? srcdir : ".", "create-from-png-stream-ref.png"); - file = fopen (filename, "r"); + file = fopen (filename, "rb"); if (file == NULL) { cairo_test_log ("Error: failed to open file: %s\n", filename); return CAIRO_TEST_FAILURE; |