[PATCH 2/2] dwrite: Reset calculated text height before updating it
Nikolay Sivov
nsivov at codeweavers.com
Fri Jul 3 03:01:12 CDT 2015
---
-------------- next part --------------
>From 828449c6f3c46c9dd137eab5d5c716f10847e916 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu, 2 Jul 2015 12:05:25 +0300
Subject: [PATCH 2/2] 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);
--
2.1.4
More information about the wine-patches
mailing list