1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 15:26:00 +02:00

Better word wrapping for hoverwatch

This commit is contained in:
Brian Fiete 2021-02-02 14:58:01 -08:00
parent 9afa24e5d7
commit 76d997fca7
2 changed files with 6 additions and 1 deletions

View file

@ -887,7 +887,7 @@ namespace Beefy.gfx
if (fontMetrics != null)
fontMetrics.mLineCount++;
drawHeight += Draw(g, StringView(workingStr, 0, checkIdx), useX, useY, justification, width, stringEndMode, fontMetrics);
drawHeight += Draw(g, StringView(workingStr, 0, checkIdx), useX, useY, justification, width, .Truncate, fontMetrics);
useY += GetLineSpacing();
workingStr.Adjust(checkIdx);
}