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:
Nikolay Sivov 2021-02-16 12:48:38 +03:00 committed by Alexandre Julliard
parent c8e663d6b1
commit d489f1ddff
2 changed files with 5 additions and 2 deletions

View File

@ -564,7 +564,10 @@ struct shaping_feature
#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
{

View File

@ -6070,7 +6070,7 @@ void opentype_layout_apply_gsub_features(struct scriptshaping_context *context,
}
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