[PATCH 1/6] dwrite: Cluster text position is relative to initial run

Nikolay Sivov nsivov at codeweavers.com
Sun Jan 24 09:10:57 CST 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/dwrite/layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 9109924..b5f6aa8 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -601,7 +601,7 @@ static inline void init_cluster_metrics(const struct dwrite_textlayout *layout,
     }
     metrics->length = length;
 
-    position = stop_position;
+    position = run->descr.textPosition + stop_position;
     if (stop_glyph == run->glyphcount)
         breakcondition = get_effective_breakpoint(layout, stop_position).breakConditionAfter;
     else {
-- 
2.7.0.rc3




More information about the wine-patches mailing list