dwrite: Reset calculated text height before updating it.
This commit is contained in:
parent
ed54767030
commit
8b566b1da7
|
@ -1215,6 +1215,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
|
||||||
layout->metrics.left = layout->metrics.top = 0.0;
|
layout->metrics.left = layout->metrics.top = 0.0;
|
||||||
layout->metrics.maxBidiReorderingDepth = 1; /* FIXME */
|
layout->metrics.maxBidiReorderingDepth = 1; /* FIXME */
|
||||||
layout->metrics.lineCount = layout->line_count;
|
layout->metrics.lineCount = layout->line_count;
|
||||||
|
layout->metrics.height = 0.0;
|
||||||
|
|
||||||
/* Now all line info is here, update effective runs positions in flow direction */
|
/* Now all line info is here, update effective runs positions in flow direction */
|
||||||
erun = layout_get_next_erun(layout, NULL);
|
erun = layout_get_next_erun(layout, NULL);
|
||||||
|
|
Loading…
Reference in New Issue