[cairo-commit] rcairo/packages/cairo/ext rb_cairo_context.c, 1.30, 1.31

Kouhei Sutou commit at pdx.freedesktop.org
Wed Oct 25 07:27:30 PDT 2006


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory kemper:/tmp/cvs-serv14446/packages/cairo/ext

Modified Files:
	rb_cairo_context.c 
Log Message:
* packages/cairo/ext/rb_cairo_context.c (cr_clip)
  (cr_clip_preserve): supported block.


Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo_context.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- rb_cairo_context.c	20 Oct 2006 14:41:49 -0000	1.30
+++ rb_cairo_context.c	25 Oct 2006 14:27:27 -0000	1.31
@@ -803,6 +803,11 @@
 static VALUE
 cr_clip (VALUE self)
 {
+  if (rb_block_given_p ())
+    {
+      cr_new_path (self);
+      rb_yield (self);
+    }
   cairo_clip (_SELF);
   cr_check_status (_SELF);
   return self;
@@ -811,6 +816,11 @@
 static VALUE
 cr_clip_preserve (VALUE self)
 {
+  if (rb_block_given_p ())
+    {
+      cr_new_path (self);
+      rb_yield (self);
+    }
   cairo_clip_preserve (_SELF);
   cr_check_status (_SELF);
   return self;



More information about the cairo-commit mailing list