[cairo-commit] rcairo/src rb_cairo_context.c,1.1,1.2
Kouhei Sutou
commit at pdx.freedesktop.org
Tue Mar 6 04:35:47 PST 2007
Committed by: kou
Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv5817/src
Modified Files:
rb_cairo_context.c
Log Message:
* src/rb_cairo_context.c (cr_get_scaled_font): checked cairo
version.
Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_context.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rb_cairo_context.c 6 Mar 2007 12:17:34 -0000 1.1
+++ rb_cairo_context.c 6 Mar 2007 12:35:40 -0000 1.2
@@ -964,11 +964,13 @@
return self;
}
+#if CAIRO_CHECK_VERSION(1, 3, 16)
static VALUE
cr_get_scaled_font (VALUE self)
{
return CRSCALEDFONT2RVAL (cairo_get_scaled_font (_SELF));
}
+#endif
static VALUE
cr_show_text (VALUE self, VALUE utf8)
@@ -1361,7 +1363,9 @@
rb_define_method (rb_cCairo_Context, "font_face", cr_get_font_face, 0);
rb_define_method (rb_cCairo_Context, "set_scaled_font",
cr_set_scaled_font, 1);
+#if CAIRO_CHECK_VERSION(1, 3, 16)
rb_define_method (rb_cCairo_Context, "scaled_font", cr_get_scaled_font, 0);
+#endif
rb_define_method (rb_cCairo_Context, "show_text", cr_show_text, 1);
rb_define_method (rb_cCairo_Context, "show_glyphs", cr_show_glyphs, 1);
rb_define_method (rb_cCairo_Context, "text_path", cr_text_path, 1);
More information about the cairo-commit
mailing list