mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 16:48:12 +02:00
Ignore output of PS tests.
Fix the PS tests to work again, (track change in create_surface interface).
This commit is contained in:
parent
24dce0dbb3
commit
94dece56a5
3 changed files with 16 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
2005-10-08 Carl Worth <cworth@cworth.org>
|
||||||
|
|
||||||
|
* test/.cvsignore: Ignore output of PS tests.
|
||||||
|
|
||||||
|
* test/cairo-test.c: (create_ps_surface): Fix the PS tests to work
|
||||||
|
again, (track change in create_surface interface).
|
||||||
|
|
||||||
2005-10-08 Carl Worth <cworth@cworth.org>
|
2005-10-08 Carl Worth <cworth@cworth.org>
|
||||||
|
|
||||||
* configure.in: Enable PS and PDF backends by default, (in
|
* configure.in: Enable PS and PDF backends by default, (in
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,8 @@ xlib-surface
|
||||||
*-image-out.png
|
*-image-out.png
|
||||||
*-image-argb32-out.png
|
*-image-argb32-out.png
|
||||||
*-image-rgb24-out.png
|
*-image-rgb24-out.png
|
||||||
|
*-ps-rgb24-out.png
|
||||||
|
*-ps-rgb24-out.ps
|
||||||
*-xcb-out.png
|
*-xcb-out.png
|
||||||
*-xcb-argb32-out.png
|
*-xcb-argb32-out.png
|
||||||
*-xcb-rgb24-out.png
|
*-xcb-rgb24-out.png
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <assert.h>
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -484,19 +485,23 @@ typedef struct _ps_target_closure
|
||||||
} ps_target_closure_t;
|
} ps_target_closure_t;
|
||||||
|
|
||||||
static cairo_surface_t *
|
static cairo_surface_t *
|
||||||
create_ps_surface (cairo_test_t *test, void **closure)
|
create_ps_surface (cairo_test_t *test, cairo_format_t format,
|
||||||
|
void **closure)
|
||||||
{
|
{
|
||||||
int width = test->width;
|
int width = test->width;
|
||||||
int height = test->height;
|
int height = test->height;
|
||||||
ps_target_closure_t *ptc;
|
ps_target_closure_t *ptc;
|
||||||
cairo_surface_t *surface;
|
cairo_surface_t *surface;
|
||||||
|
|
||||||
|
/* This is the only format supported by the PS surface backend. */
|
||||||
|
assert (format == CAIRO_FORMAT_RGB24);
|
||||||
|
|
||||||
*closure = ptc = xmalloc (sizeof (ps_target_closure_t));
|
*closure = ptc = xmalloc (sizeof (ps_target_closure_t));
|
||||||
|
|
||||||
ptc->width = width;
|
ptc->width = width;
|
||||||
ptc->height = height;
|
ptc->height = height;
|
||||||
|
|
||||||
xasprintf (&ptc->filename, "%s-%s%s", test->name, "ps", ".ps");
|
xasprintf (&ptc->filename, "%s-%s%s", test->name, "ps-rgb24-out", ".ps");
|
||||||
surface = cairo_ps_surface_create (ptc->filename, width, height);
|
surface = cairo_ps_surface_create (ptc->filename, width, height);
|
||||||
if (!surface) {
|
if (!surface) {
|
||||||
free (ptc);
|
free (ptc);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue