Make planner available to complex shaper choosing logic

This commit is contained in:
Behdad Esfahbod 2012-11-12 18:23:38 -08:00
parent 6fddf2d739
commit 9b37b4c580
2 changed files with 3 additions and 3 deletions

View File

@ -115,9 +115,9 @@ HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
static inline const hb_ot_complex_shaper_t *
hb_ot_shape_complex_categorize (const hb_segment_properties_t *props)
hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
{
switch ((hb_tag_t) props->script)
switch ((hb_tag_t) planner->props.script)
{
default:
return &_hb_ot_complex_shaper_default;

View File

@ -175,7 +175,7 @@ _hb_ot_shaper_shape_plan_data_create (hb_shape_plan_t *shape_plan,
hb_ot_shape_planner_t planner (shape_plan);
planner.shaper = hb_ot_shape_complex_categorize (&shape_plan->props);
planner.shaper = hb_ot_shape_complex_categorize (&planner);
hb_ot_shape_collect_features (&planner, &shape_plan->props, user_features, num_user_features);