mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Fix bug with line height calc with blank lines.
This commit is contained in:
parent
d3ce724d28
commit
90f0e64d80
1 changed files with 6 additions and 0 deletions
|
@ -167,6 +167,12 @@ namespace ShiftOS.Frontend.Apps
|
|||
int line = GetCurrentLine();
|
||||
for (int l = 0; l < line; l++)
|
||||
{
|
||||
if (string.IsNullOrEmpty(Lines[l]))
|
||||
{
|
||||
vertMeasure += LoadedSkin.TerminalFont.Height;
|
||||
continue;
|
||||
}
|
||||
|
||||
lineindex += Lines[l].Length;
|
||||
var stringMeasure = gfx.SmartMeasureString(Lines[l] == "\r" ? " " : Lines[l], LoadedSkin.TerminalFont, Width - 4);
|
||||
vertMeasure += (int)stringMeasure.Height;
|
||||
|
|
Loading…
Reference in a new issue