Skip to content

Commit

Permalink
Fix problem with long lines getting clipped
Browse files Browse the repository at this point in the history
Line length calculations were incorrectly taking the space used up by
the file list into account when calculating available space. This led
to long lines being clipped, leaving white space on the right of the
line instead of text being printed.
  • Loading branch information
Colin Ward committed Oct 12, 2024
1 parent 2d16eff commit 05da302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StdFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ void RFont::DrawColouredText(const char *a_pccText, TInt a_iStartOffset, TInt a_
XPixels = TextWidthInPixels(LineText);
XPosition = (m_iXOffset + XPixels);

if (XPosition > m_iClipWidth)
if (XPixels > m_iClipWidth)
{
break;
}
Expand Down

0 comments on commit 05da302

Please sign in to comment.