Commit 94b367e3 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Fix feature mask for non-global features.

parent b78285b9
...@@ -4518,7 +4518,10 @@ static void opentype_layout_collect_lookups(struct scriptshaping_context *contex ...@@ -4518,7 +4518,10 @@ static void opentype_layout_collect_lookups(struct scriptshaping_context *contex
if ((feature->flags & FEATURE_GLOBAL) && feature->max_value == 1) if ((feature->flags & FEATURE_GLOBAL) && feature->max_value == 1)
bits_needed = 0; bits_needed = 0;
else else
{
BitScanReverse(&bits_needed, min(feature->max_value, 256)); BitScanReverse(&bits_needed, min(feature->max_value, 256));
bits_needed++;
}
if (!feature->max_value || next_bit + bits_needed > 8 * sizeof (feature->mask)) if (!feature->max_value || next_bit + bits_needed > 8 * sizeof (feature->mask))
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment