On Mon, Mar 16, 2020 at 11:09 AM Sven Baars sbaars@codeweavers.com wrote:
On 13-03-2020 17:21, Matteo Bruni wrote:
On Tue, Mar 10, 2020 at 11:38 AM Sven Baars sbaars@codeweavers.com wrote:
@@ -705,11 +706,24 @@ static INT WINAPI ID3DXFontImpl_DrawTextW(ID3DXFont *iface, ID3DXSprite *sprite, heap_free(results.lpCaretPos); heap_free(results.lpGlyphs); }
else if (size.cx > max_width)
{
max_width = size.cx;
}
I don't know if this is going to change afterwards but, currently, it seems to me that the "else if" condition is always true.
I don't think so. There is a while loop over all lines. If the first line has width 20 and the second line has width 10, the first one counts.
Indeed, not sure what I saw earlier...