[cairo-commit] rcairo/src rb_cairo_context.c,1.17,1.18

Kouhei Sutou commit at pdx.freedesktop.org
Sat Dec 29 03:42:29 PST 2007


Committed by: kou

Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv6360/src

Modified Files:
	rb_cairo_context.c 
Log Message:
* src/rb_cairo_context.c (cr_set_source_surface): fixed wrong type conversion.
  Reported by Binzo. Thanks!!!
* README: updated Binzo entry in Thanks list.


Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_context.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- rb_cairo_context.c	28 Dec 2007 07:49:05 -0000	1.17
+++ rb_cairo_context.c	29 Dec 2007 11:42:26 -0000	1.18
@@ -290,8 +290,8 @@
 {
   cairo_set_source_surface (_SELF,
                             RVAL2CRSURFACE (surface),
-                            NUM2INT (width),
-                            NUM2INT (height));
+                            NUM2DBL (width),
+                            NUM2DBL (height));
   cr_check_status (_SELF);
   rb_ivar_set (self, cr_id_source, Qnil);
   return self;



More information about the cairo-commit mailing list