[cairo-commit] rcairo/packages/cairo/ext rb_cairo_context.c, 1.34,
1.35
Kouhei Sutou
commit at pdx.freedesktop.org
Sat Jan 20 07:10:44 PST 2007
Committed by: kou
Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory kemper:/tmp/cvs-serv8032/packages/cairo/ext
Modified Files:
rb_cairo_context.c
Log Message:
* packages/cairo/ext/rb_cairo_context.c: supported cairo 1.3.12.
Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo_context.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- rb_cairo_context.c 1 Jan 2007 15:33:20 -0000 1.34
+++ rb_cairo_context.c 20 Jan 2007 15:10:39 -0000 1.35
@@ -861,13 +861,13 @@
}
static VALUE
-cr_clip_rectangles (VALUE self)
+cr_clip_rectangle_list (VALUE self)
{
VALUE rb_rectangles;
cairo_rectangle_list_t *rectangles;
int i;
- rectangles = cairo_copy_clip_rectangles (_SELF);
+ rectangles = cairo_copy_clip_rectangle_list (_SELF);
rb_cairo_check_status (rectangles->status);
rb_rectangles = rb_ary_new2 (rectangles->num_rectangles);
@@ -1145,10 +1145,7 @@
static VALUE
cr_get_dash_count (VALUE self)
{
- int count;
- cairo_get_dash_count (_SELF, &count);
- cr_check_status (_SELF);
- return INT2NUM (count);
+ return INT2NUM (cairo_get_dash_count (_SELF));
}
static VALUE
@@ -1157,9 +1154,7 @@
int count;
double *dashes, offset;
- cairo_get_dash_count (_SELF, &count);
- cr_check_status (_SELF);
-
+ count = cairo_get_dash_count (_SELF);
dashes = ALLOCA_N (double, count);
cairo_get_dash (_SELF, dashes, &offset);
@@ -1342,8 +1337,8 @@
rb_define_method (rb_cCairo_Context, "clip_preserve", cr_clip_preserve, 0);
#if CAIRO_CHECK_VERSION(1, 3, 0)
rb_define_method (rb_cCairo_Context, "clip_extents", cr_clip_extents, 0);
- rb_define_method (rb_cCairo_Context, "clip_rectangles",
- cr_clip_rectangles, 0);
+ rb_define_method (rb_cCairo_Context, "clip_rectangle_list",
+ cr_clip_rectangle_list, 0);
#endif
/* Font/Text functions */
More information about the cairo-commit
mailing list