split/Tioga/texout.c in tioga-1.5 vs split/Tioga/texout.c in tioga-1.6
- old
+ new
@@ -149,11 +149,11 @@
fraction = rb_Float(fraction);
scale = rb_Float(scale);
angle = rb_Float(angle);
justification = rb_Integer(justification);
alignment = rb_Integer(alignment);
- c_show_rotated_text(p, RSTRING(text)->ptr, NUM2INT(frame_side), NUM2DBL(shift),
+ c_show_rotated_text(p, RSTRING_PTR(text), NUM2INT(frame_side), NUM2DBL(shift),
NUM2DBL(fraction), NUM2DBL(scale), NUM2DBL(angle), NUM2INT(justification), NUM2INT(alignment));
return fmkr;
}
void c_show_rotated_label(FM *p, char *text,
@@ -172,10 +172,10 @@
yloc = rb_Float(yloc);
scale = rb_Float(scale);
angle = rb_Float(angle);
justification = rb_Integer(justification);
alignment = rb_Integer(alignment);
- c_show_rotated_label(p, RSTRING(text)->ptr, NUM2DBL(xloc), NUM2DBL(yloc),
+ c_show_rotated_label(p, RSTRING_PTR(text), NUM2DBL(xloc), NUM2DBL(yloc),
NUM2DBL(scale), NUM2DBL(angle), NUM2INT(justification), NUM2INT(alignment));
return fmkr;
}
VALUE FM_check_label_clip(VALUE fmkr, VALUE xloc, VALUE yloc)