Nikolay Sivov : dwrite: Reset calculated text height before updating it.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 3 09:02:37 CDT 2015


Module: wine
Branch: master
Commit: 8b566b1da71a412fe58c3cc1988d610c2aba5f2d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8b566b1da71a412fe58c3cc1988d610c2aba5f2d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Jul  3 11:01:12 2015 +0300

dwrite: Reset calculated text height before updating it.

---

 dlls/dwrite/layout.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index fbd7df0..980eff5 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -1215,6 +1215,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
     layout->metrics.left = layout->metrics.top = 0.0;
     layout->metrics.maxBidiReorderingDepth = 1; /* FIXME */
     layout->metrics.lineCount = layout->line_count;
+    layout->metrics.height = 0.0;
 
     /* Now all line info is here, update effective runs positions in flow direction */
     erun = layout_get_next_erun(layout, NULL);




More information about the wine-cvs mailing list