Nikolay Sivov : dwrite: Update current line count when adding metrics for new line.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 29 08:12:10 CDT 2015
Module: wine
Branch: master
Commit: 3976cc459d84bb37d7f0addd35c655c41519055b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3976cc459d84bb37d7f0addd35c655c41519055b
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Jun 29 12:51:14 2015 +0300
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);
More information about the wine-cvs
mailing list