[PATCH 1/4] dwrite: Pass features to stage functions.

Nikolay Sivov nsivov at codeweavers.com
Tue Feb 16 03:48:38 CST 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/dwrite/dwrite_private.h | 5 ++++-
 dlls/dwrite/opentype.c       | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/dwrite/dwrite_private.h b/dlls/dwrite/dwrite_private.h
index fa82a8d4376..830c71f0abf 100644
--- a/dlls/dwrite/dwrite_private.h
+++ b/dlls/dwrite/dwrite_private.h
@@ -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
 {
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index afae1b69d07..125b7353031 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -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
-- 
2.30.0




More information about the wine-devel mailing list