[cairo-commit] rcairo/packages/cairo/ext rb_cairo_surface.c, 1.10, 1.11

Kouhei Sutou commit at pdx.freedesktop.org
Sat Oct 8 08:38:09 PDT 2005


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory gabe:/tmp/cvs-serv10391/packages/cairo/ext

Modified Files:
	rb_cairo_surface.c 
Log Message:
* packages/cairo/ext/rb_cairo_surface.c
  (cr_surface_write_to_png): Don't use rb_need_block() for ruby <= 1.8.2.


Index: rb_cairo_surface.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo_surface.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- rb_cairo_surface.c	7 Oct 2005 15:11:26 -0000	1.10
+++ rb_cairo_surface.c	8 Oct 2005 15:38:05 -0000	1.11
@@ -188,9 +188,8 @@
 
   n = rb_scan_args (argc, argv, "01", &filename);
 
-  if (n == 0)
+  if (n == 0 && rb_block_given_p ())
     {
-      rb_need_block();
       status = cairo_surface_write_to_png_stream (_SELF,
                                                   cr_surface_write_func,
                                                   (void *)rb_block_proc());



More information about the cairo-commit mailing list