diff options
author | Carl Worth <cworth@cworth.org> | 2005-03-08 19:25:39 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-03-08 19:25:39 +0000 |
commit | e586688e6bed6b148c6920be35741305c95f0ca6 (patch) | |
tree | 38be91f00f9f54fed711128174f01757cc916edc | |
parent | 0c67d496a35e7f069faeaba32bfde697dc949e9f (diff) |
Look for png images in ${srcdir}/filename as well, so that make distcheck can still find them.
Add romedalen.png to EXTRA_DIST so the tests can pass from the tar file.
Fix typo: cairo-win3 -> cairo-win32.
Add cairo-win32.xml to the list, so it gets generated as well.
Add pointer to new win32 documentation.
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | doc/public/cairo-docs.xml | 1 | ||||
-rw-r--r-- | doc/public/cairo-sections.txt | 2 | ||||
-rw-r--r-- | test/Makefile.am | 3 | ||||
-rw-r--r-- | test/cairo-test.c | 9 | ||||
-rw-r--r-- | test/cairo_test.c | 9 |
7 files changed, 41 insertions, 2 deletions
@@ -1,5 +1,20 @@ 2005-03-08 Carl Worth <cworth@cworth.org> + * test/cairo_test.c (cairo_test_create_png_pattern): Look for png + images in ${srcdir}/filename as well, so that make distcheck can + still find them. + + * test/Makefile.am (EXTRA_DIST): Add romedalen.png to EXTRA_DIST + so the tests can pass from the tar file. + + * doc/public/cairo-sections.txt: Fix typo: cairo-win3 -> + cairo-win32. + + * doc/public/cairo-docs.xml: Add cairo-win32.xml to the list, so + it gets generated as well. + + * NEWS (http): Add pointer to new win32 documentation. + * configure.in: Increment CAIRO_VERSION to 0.4.0 * NEWS: Added notes for snapshot 0.4.0 @@ -36,6 +36,10 @@ This is the first snapshot to include a functional win32 backend, double cairo_win32_font_get_scale_factor (cairo_font_t *font); +And see also the documentation at: + +http://cairographics.org/manual/cairo-Microsoft-Windows-Backend.html + Disabled backend: quartz ------------------------ Unfortunately, the quartz backend code is currently out of date with diff --git a/doc/public/cairo-docs.xml b/doc/public/cairo-docs.xml index a07791673..2a4cdae8a 100644 --- a/doc/public/cairo-docs.xml +++ b/doc/public/cairo-docs.xml @@ -19,6 +19,7 @@ <xi:include href="xml/cairo-png.xml"/> <xi:include href="xml/cairo-ps.xml"/> <xi:include href="xml/cairo-quartz.xml"/> + <xi:include href="xml/cairo-win32.xml"/> <xi:include href="xml/cairo-xcb.xml"/> <xi:include href="xml/cairo-xlib.xml"/> </part> diff --git a/doc/public/cairo-sections.txt b/doc/public/cairo-sections.txt index 7368e59c1..3da0fa801 100644 --- a/doc/public/cairo-sections.txt +++ b/doc/public/cairo-sections.txt @@ -50,7 +50,7 @@ cairo_quartz_surface_create </SECTION> <SECTION> -<FILE>cairo-win3</FILE> +<FILE>cairo-win32</FILE> <TITLE>Microsoft Windows Backend</TITLE> cairo_set_target_win32 cairo_win32_surface_create diff --git a/test/Makefile.am b/test/Makefile.am index 5c56a3013..994c2127f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -22,7 +22,8 @@ linear_gradient-ref.png \ move_to_show_surface-ref.png \ coverage-ref.png \ clip_twice-ref.png \ -pixman_rotate-ref.png +pixman_rotate-ref.png \ +romedalen.png # Once we can draw the text_rotate.c test case correctly, we should # create and add text_rotate-ref.png to the list of reference PNGs. diff --git a/test/cairo-test.c b/test/cairo-test.c index 30ca1dcb9..06f7672fd 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -222,8 +222,17 @@ cairo_test_create_png_pattern (cairo_t *cr, const char *filename) unsigned char *buffer; int w, h, stride; read_png_status_t status; + char *srcdir = getenv ("srcdir"); status = read_png_argb32 (filename, &buffer, &w,&h, &stride); + if (status != READ_PNG_SUCCESS) { + if (srcdir) { + char *srcdir_filename; + xasprintf (&srcdir_filename, "%s/%s", srcdir, filename); + status = read_png_argb32 (srcdir_filename, &buffer, &w,&h, &stride); + free (srcdir_filename); + } + } if (status != READ_PNG_SUCCESS) return NULL; diff --git a/test/cairo_test.c b/test/cairo_test.c index 30ca1dcb9..06f7672fd 100644 --- a/test/cairo_test.c +++ b/test/cairo_test.c @@ -222,8 +222,17 @@ cairo_test_create_png_pattern (cairo_t *cr, const char *filename) unsigned char *buffer; int w, h, stride; read_png_status_t status; + char *srcdir = getenv ("srcdir"); status = read_png_argb32 (filename, &buffer, &w,&h, &stride); + if (status != READ_PNG_SUCCESS) { + if (srcdir) { + char *srcdir_filename; + xasprintf (&srcdir_filename, "%s/%s", srcdir, filename); + status = read_png_argb32 (srcdir_filename, &buffer, &w,&h, &stride); + free (srcdir_filename); + } + } if (status != READ_PNG_SUCCESS) return NULL; |