dwrite: Pass features to stage functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c8e663d6b1
commit
d489f1ddff
|
@ -564,7 +564,10 @@ struct shaping_feature
|
||||||
|
|
||||||
#define MAX_SHAPING_STAGE 16
|
#define MAX_SHAPING_STAGE 16
|
||||||
|
|
||||||
typedef void (*stage_func)(struct scriptshaping_context *context);
|
struct shaping_features;
|
||||||
|
|
||||||
|
typedef void (*stage_func)(struct scriptshaping_context *context,
|
||||||
|
const struct shaping_features *features);
|
||||||
|
|
||||||
struct shaping_stage
|
struct shaping_stage
|
||||||
{
|
{
|
||||||
|
|
|
@ -6070,7 +6070,7 @@ void opentype_layout_apply_gsub_features(struct scriptshaping_context *context,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (features->stages[j].func)
|
if (features->stages[j].func)
|
||||||
features->stages[j].func(context);
|
features->stages[j].func(context, features);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For every glyph range of [<last>.isClusterStart, <next>.isClusterStart) set corresponding
|
/* For every glyph range of [<last>.isClusterStart, <next>.isClusterStart) set corresponding
|
||||||
|
|
Loading…
Reference in New Issue