[seed] Fixing cairo_curve_to method
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Fixing cairo_curve_to method
- Date: Fri, 15 Jan 2016 06:46:35 +0000 (UTC)
commit a17bdc78aa8d6f8342b482c0fc58a32bcc3bf5c1
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date: Mon Jan 11 16:28:17 2016 -0200
Fixing cairo_curve_to method
y1 value wasn't being used. y2 was being used twice.
modules/cairo/seed-cairo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/cairo/seed-cairo.c b/modules/cairo/seed-cairo.c
index 09ec4c4..cdb9b5c 100644
--- a/modules/cairo/seed-cairo.c
+++ b/modules/cairo/seed-cairo.c
@@ -1201,7 +1201,7 @@ seed_cairo_curve_to (SeedContext ctx,
x3 = seed_value_to_double (ctx, arguments[4], exception);
y3 = seed_value_to_double (ctx, arguments[5], exception);
- cairo_curve_to (cr, x1, y2, x2, y2, x3, y3);
+ cairo_curve_to (cr, x1, y1, x2, y2, x3, y3);
return seed_make_undefined (ctx);
}
@@ -1228,7 +1228,7 @@ seed_cairo_rel_curve_to (SeedContext ctx,
x3 = seed_value_to_double (ctx, arguments[4], exception);
y3 = seed_value_to_double (ctx, arguments[5], exception);
- cairo_rel_curve_to (cr, x1, y2, x2, y2, x3, y3);
+ cairo_rel_curve_to (cr, x1, y1, x2, y2, x3, y3);
return seed_make_undefined (ctx);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]