Aric Stewart : usp10: Correct Post Base glyph index shifting.
Alexandre Julliard
julliard at winehq.org
Tue Jun 21 12:25:44 CDT 2011
Module: wine
Branch: master
Commit: 648b7f2afa2afe114a381f0c9a2e18319cc218ff
URL: http://source.winehq.org/git/wine.git/?a=commit;h=648b7f2afa2afe114a381f0c9a2e18319cc218ff
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Jun 21 10:07:49 2011 -0500
usp10: Correct Post Base glyph index shifting.
---
dlls/usp10/shape.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c
index cbe186a..104757c 100644
--- a/dlls/usp10/shape.c
+++ b/dlls/usp10/shape.c
@@ -2097,7 +2097,6 @@ static void Apply_Indic_PostBase(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa
{
INT index, nextIndex;
INT count, g_offset;
- INT prevCount = *pcGlyphs;
count = syllable->end - syllable->base;
@@ -2109,12 +2108,13 @@ static void Apply_Indic_PostBase(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa
while (index >= 0)
{
+ INT prevCount = *pcGlyphs;
nextIndex = apply_GSUB_feature_to_glyph(hdc, psa, psc, pwOutGlyphs, index+glyph_index->base+g_offset, 1, pcGlyphs, feat);
if (nextIndex > GSUB_E_NOGLYPH)
{
UpdateClusters(nextIndex, *pcGlyphs - prevCount, 1, cChars, pwLogClust);
+ shift_syllable_glyph_indexs(glyph_index,index+glyph_index->start+g_offset, (*pcGlyphs - prevCount));
g_offset += (*pcGlyphs - prevCount);
- shift_syllable_glyph_indexs(glyph_index,index+glyph_index->start, g_offset);
}
index+=2;
More information about the wine-cvs
mailing list