MRI: Init default font names to correct value (RGSS2)

This commit is contained in:
Jonas Kulla 2014-09-23 12:05:28 +02:00
parent 5c3c73ee94
commit 8d67b7c91d
1 changed files with 10 additions and 0 deletions

View File

@ -307,4 +307,14 @@ fontBindingInit()
INIT_PROP_BIND(Font, Outline, "outline");
INIT_PROP_BIND(Font, OutColor, "out_color");
}
if (rgssVer >= 2)
{
VALUE defNames = rb_ary_new_capa(3);
rb_ary_push(defNames, rb_str_new2("Verdana"));
rb_ary_push(defNames, rb_str_new2("Arial"));
rb_ary_push(defNames, rb_str_new2("Courier New"));
FontSetDefaultName(1, &defNames, klass);
}
}