Make planner available to complex shaper choosing logic
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 13 Nov 2012 02:23:38 +0000 (18:23 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 13 Nov 2012 02:23:38 +0000 (18:23 -0800)
src/hb-ot-shape-complex-private.hh
src/hb-ot-shape.cc

index e3da44b..c3e5ba5 100644 (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;
index 9a6260a..d168ae7 100644 (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);