mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 10:50:17 +01: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>
|
||||
|
||||
* configure.in: Enable PS and PDF backends by default, (in
|
||||
|
|
|
|||
|
|
@ -73,6 +73,8 @@ xlib-surface
|
|||
*-image-out.png
|
||||
*-image-argb32-out.png
|
||||
*-image-rgb24-out.png
|
||||
*-ps-rgb24-out.png
|
||||
*-ps-rgb24-out.ps
|
||||
*-xcb-out.png
|
||||
*-xcb-argb32-out.png
|
||||
*-xcb-rgb24-out.png
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <assert.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
@ -484,19 +485,23 @@ typedef struct _ps_target_closure
|
|||
} ps_target_closure_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 height = test->height;
|
||||
ps_target_closure_t *ptc;
|
||||
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));
|
||||
|
||||
ptc->width = width;
|
||||
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);
|
||||
if (!surface) {
|
||||
free (ptc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue