Nikolay Sivov : dwrite: Fix feature mask for non-global features.
Alexandre Julliard
julliard at winehq.org
Wed Jan 20 16:58:43 CST 2021
Module: wine
Branch: master
Commit: 94b367e3e91212f5b68a13b897f878405580b404
URL: https://source.winehq.org/git/wine.git/?a=commit;h=94b367e3e91212f5b68a13b897f878405580b404
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Jan 20 17:02:34 2021 +0300
dwrite: Fix feature mask for non-global features.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/opentype.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 7c30678234a..a025227dfda 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -4518,7 +4518,10 @@ static void opentype_layout_collect_lookups(struct scriptshaping_context *contex
if ((feature->flags & FEATURE_GLOBAL) && feature->max_value == 1)
bits_needed = 0;
else
+ {
BitScanReverse(&bits_needed, min(feature->max_value, 256));
+ bits_needed++;
+ }
if (!feature->max_value || next_bit + bits_needed > 8 * sizeof (feature->mask))
continue;
More information about the wine-cvs
mailing list