Module: wine Branch: master Commit: 66736948475bf909cfb3bdfc9ffa428d61909f65 URL: http://source.winehq.org/git/wine.git/?a=commit;h=66736948475bf909cfb3bdfc9f...
Author: Aric Stewart aric@codeweavers.com Date: Mon Dec 5 09:50:10 2011 -0600
usp10: Correct issues with LTR logclust indexing after Multiple substitution.
---
dlls/usp10/shape.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index 04f0ff4..2189b92 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -1360,9 +1360,13 @@ static void UpdateClusters(int nextIndex, int changeCount, int write_dir, int ch int replacing_glyph = -1; int changed = 0;
- if (changeCount > 0) - target_glyph = nextIndex - ((changeCount+1)*write_dir); + { + if (write_dir > 0) + target_glyph = nextIndex - changeCount; + else + target_glyph = nextIndex + (changeCount + 1); + }
seeking_glyph = target_glyph;