summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-shapes.cpp
diff options
context:
space:
mode:
authorsuyambulingamrm <suyambu.rm@samsung.com>2014-06-16 19:57:12 +0530
committerBryce Harrington <b.harrington@samsung.com>2014-06-17 18:14:40 -0700
commitdd3be2819c7b00c5042d702c73a21390f64fe6d7 (patch)
tree3c89bd462cee9bf7b6cf9beb832c816b7c12d9d1 /src/cairo-shapes.cpp
parentd2564d964135c59a23682ad4b9580fcca27fda4f (diff)
Issue #92. Corrections to make output similar between cairo and skia
Diffstat (limited to 'src/cairo-shapes.cpp')
-rw-r--r--src/cairo-shapes.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cairo-shapes.cpp b/src/cairo-shapes.cpp
index b850bf2..3eaac7d 100644
--- a/src/cairo-shapes.cpp
+++ b/src/cairo-shapes.cpp
@@ -76,7 +76,7 @@ void
cairoDrawLine(caskbench_context_t *ctx, shapes_t *args)
{
cairo_move_to (ctx->cairo_cr, args->x, args->y);
- cairo_rel_line_to (ctx->cairo_cr, args->width, args->height);
+ cairo_line_to (ctx->cairo_cr, args->x + args->width, args->y + args->height);
}
void
@@ -89,10 +89,17 @@ cairoDrawQuadraticCurve(caskbench_context_t *ctx, shapes_t *args)
double qy2 = args->height - args->dy1 * 2.0 / 3.0;
cairo_move_to (ctx->cairo_cr, args->x, args->y);
+#if 0
cairo_rel_curve_to (ctx->cairo_cr,
qx1, qy1,
qx2, qy2,
args->width, args->height);
+#else
+ cairo_rel_curve_to (ctx->cairo_cr,
+ args->dx1, args->dy1,
+ args->width, args->height,
+ args->width, args->height);
+#endif
}
void