[cairo-commit] rcairo/packages/cairo/ext rb_cairo_context.c, 1.24,
1.25
Kouhei Sutou
commit at pdx.freedesktop.org
Mon Oct 17 02:40:53 PDT 2005
Committed by: kou
Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory gabe:/tmp/cvs-serv25391/packages/cairo/ext
Modified Files:
rb_cairo_context.c
Log Message:
* packages/cairo/ext/rb_cairo_context.c: Fixed wrong number of
argument of Cairo::Context#identity_matrix.
Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo_context.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- rb_cairo_context.c 16 Oct 2005 03:57:01 -0000 1.24
+++ rb_cairo_context.c 17 Oct 2005 09:40:51 -0000 1.25
@@ -799,7 +799,8 @@
static VALUE
cr_get_font_options (VALUE self)
{
- cairo_font_options_t *options = cairo_font_options_create();
+ cairo_font_options_t *options = cairo_font_options_create ();
+ rb_cairo_check_status (cairo_font_options_status (options));
cairo_get_font_options (_SELF, options);
cr_check_status (_SELF);
return CRFONTOPTIONS2RVAL (options);
@@ -1054,7 +1055,7 @@
rb_define_method (rb_cCairo_Context, "set_matrix", cr_set_matrix, 1);
rb_define_method (rb_cCairo_Context, "identity_matrix",
- cr_identity_matrix, 1);
+ cr_identity_matrix, 0);
rb_define_method (rb_cCairo_Context, "user_to_device", cr_user_to_device, 2);
rb_define_method (rb_cCairo_Context, "user_to_device_distance",
cr_user_to_device_distance, 2);
More information about the cairo-commit
mailing list