Binding-MRuby: Make stuff work with latest mruby git

This commit is contained in:
Jonas Kulla 2014-07-19 02:22:22 +02:00
parent ccba946973
commit 48db6fbeda
14 changed files with 28 additions and 30 deletions

View file

@ -142,7 +142,7 @@ MRB_METHOD(FontSetDefaultColor)
void
fontBindingInit(mrb_state *mrb)
{
RClass *klass = mrb_define_class(mrb, "Font", 0);
RClass *klass = defineClass(mrb, "Font");
Font::setDefaultColor(new Color(*Font::getDefaultColor()));
wrapProperty(mrb, mrb_obj_value(klass), Font::getDefaultColor(), CSdefault_color, ColorType);