summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-07-03 02:54:28 +0200
committerBenjamin Otte <otte@redhat.com>2010-07-03 02:55:52 +0200
commitfcfe7c67248ea171dc40c0dbd861e489a2df5941 (patch)
tree334cea77efc5cb572f2d28013aa35852ffb5f4db /boilerplate/cairo-boilerplate.c
parent0a7135148a634ea6692a4edd83193870a5d526b3 (diff)
boilerplate: Add describe string
Print the pixman version we're using
Diffstat (limited to 'boilerplate/cairo-boilerplate.c')
-rw-r--r--boilerplate/cairo-boilerplate.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c
index 529a4f21c..a77fa578a 100644
--- a/boilerplate/cairo-boilerplate.c
+++ b/boilerplate/cairo-boilerplate.c
@@ -29,6 +29,8 @@
#include "cairo-boilerplate-private.h"
#include "cairo-boilerplate-scaled-font.h"
+#include <pixman.h>
+
#include <cairo-types-private.h>
#include <cairo-scaled-font-private.h>
@@ -166,6 +168,16 @@ _cairo_boilerplate_image16_create_surface (const char *name,
return cairo_image_surface_create (CAIRO_FORMAT_RGB16_565, ceil (width), ceil (height));
}
+static char *
+_cairo_boilerplate_image_describe (void *closure)
+{
+ char *s;
+
+ xasprintf (&s, "pixman %s", pixman_version_string ());
+
+ return s;
+}
+
#if CAIRO_HAS_RECORDING_SURFACE
static cairo_surface_t *
_cairo_boilerplate_recording_create_surface (const char *name,
@@ -326,7 +338,8 @@ static const cairo_boilerplate_target_t builtin_targets[] = {
NULL, NULL,
_cairo_boilerplate_get_image_surface,
cairo_surface_write_to_png,
- NULL, NULL, NULL,
+ NULL, NULL,
+ _cairo_boilerplate_image_describe,
TRUE, FALSE, FALSE
},
{
@@ -336,7 +349,8 @@ static const cairo_boilerplate_target_t builtin_targets[] = {
NULL, NULL,
_cairo_boilerplate_get_image_surface,
cairo_surface_write_to_png,
- NULL, NULL, NULL,
+ NULL, NULL,
+ _cairo_boilerplate_image_describe,
FALSE, FALSE, FALSE
},
{
@@ -346,7 +360,8 @@ static const cairo_boilerplate_target_t builtin_targets[] = {
NULL, NULL,
_cairo_boilerplate_get_image_surface,
cairo_surface_write_to_png,
- NULL, NULL, NULL,
+ NULL, NULL,
+ _cairo_boilerplate_image_describe,
TRUE, FALSE, FALSE
},
#if CAIRO_HAS_RECORDING_SURFACE