[gegl] Adapt ruby binding to current babl and gegl api
- From: Manish Singh <yosh src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] Adapt ruby binding to current babl and gegl api
- Date: Wed, 13 May 2009 19:43:00 -0400 (EDT)
commit 67556941de89a210165dc0365597b04e9171f443
Author: Manish Singh <yosh gimp org>
Date: Wed May 13 16:42:43 2009 -0700
Adapt ruby binding to current babl and gegl api
---
bindings/rgegl/ChangeLog | 7 +++++++
bindings/rgegl/src/rgegl-color.c | 2 +-
bindings/rgegl/src/rgegl-node.c | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/bindings/rgegl/ChangeLog b/bindings/rgegl/ChangeLog
index 3c79ed0..552d37a 100644
--- a/bindings/rgegl/ChangeLog
+++ b/bindings/rgegl/ChangeLog
@@ -1,3 +1,10 @@
+2009-05-13 Manish Singh <yosh gimp org>
+
+ Adapt to current babl and gegl api
+
+ * src/rgegl-node.c
+ * src/rgegl-color.c
+
2008-11-17 �yvind Kolås <pippin gimp org>
* samples/render-test.rb:
diff --git a/bindings/rgegl/src/rgegl-color.c b/bindings/rgegl/src/rgegl-color.c
index df05352..61c8cfd 100644
--- a/bindings/rgegl/src/rgegl-color.c
+++ b/bindings/rgegl/src/rgegl-color.c
@@ -37,7 +37,7 @@ static VALUE
ccolor_get_rgba(self)
VALUE self;
{
- float r, g, b, a;
+ double r, g, b, a;
gegl_color_get_rgba (_SELF(self),
&r,
&g,
diff --git a/bindings/rgegl/src/rgegl-node.c b/bindings/rgegl/src/rgegl-node.c
index 5336fa9..d7aef5c 100644
--- a/bindings/rgegl/src/rgegl-node.c
+++ b/bindings/rgegl/src/rgegl-node.c
@@ -177,7 +177,7 @@ cnode_render (self, r_rectangle, r_scale, r_format, r_flags)
flags = NUM2INT (r_flags);
buflen = rectangle->width * rectangle->height *
- ((Babl*)format)->format.bytes_per_pixel;
+ babl_format_get_bytes_per_pixel (format);
rbuf = rb_str_new (NULL, buflen);
buf = RSTRING(rbuf)->ptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]