[PATCH 1/4] dwrite: Update current line count when adding metrics for new line
Nikolay Sivov
nsivov at codeweavers.com
Mon Jun 29 04:51:14 CDT 2015
---
-------------- next part --------------
>From 4ac5ea36ce28ef4cb1788f707372618afa1f32e9 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon, 29 Jun 2015 00:31:21 +0300
Subject: [PATCH 1/4] dwrite: Update current line count when adding metrics for
new line
---
dlls/dwrite/layout.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 611a1e6..2fe1c41 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -1033,6 +1033,7 @@ static HRESULT layout_set_line_metrics(struct dwrite_textlayout *layout, DWRITE_
}
layout->lines[*line] = *metrics;
+ layout->line_count += 1;
*line += 1;
return S_OK;
}
@@ -1198,8 +1199,6 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
textpos += layout->clustermetrics[i].length;
}
- layout->line_count = line;
-
/* Now all line info is here, update effective runs positions in flow direction */
erun = layout_get_next_erun(layout, NULL);
inrun = layout_get_next_inline_run(layout, NULL);
--
2.1.4
More information about the wine-patches
mailing list