summaryrefslogtreecommitdiff
path: root/test/svg-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/svg-surface.c')
-rw-r--r--test/svg-surface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/svg-surface.c b/test/svg-surface.c
index 08daaac1..305227c5 100644
--- a/test/svg-surface.c
+++ b/test/svg-surface.c
@@ -35,11 +35,11 @@
#define WIDTH_IN_INCHES 3
#define HEIGHT_IN_INCHES 3
-#define WIDTH_IN_POINTS (WIDTH_IN_INCHES * 72.0)
-#define HEIGHT_IN_POINTS (HEIGHT_IN_INCHES * 72.0)
+#define WIDTH_IN_POINTS (WIDTH_IN_INCHES * 72)
+#define HEIGHT_IN_POINTS (HEIGHT_IN_INCHES * 72)
-static void
-draw (cairo_t *cr, double width, double height)
+static cairo_test_status_t
+draw (cairo_t *cr, int width, int height)
{
#define STROKE_WIDTH .04
@@ -91,7 +91,7 @@ main (void)
const char *filename = "svg-surface.svg";
cairo_surface_t *surface;
- printf("\n");
+ cairo_test_init ("svg-surface");
surface = cairo_svg_surface_create (filename,
WIDTH_IN_POINTS, HEIGHT_IN_POINTS);