Skip to content

Commit

Permalink
Fix time hidden in NTC messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarBLG committed Dec 17, 2023
1 parent 185346f commit 118e7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DMI/messages/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ void updateMessages()
else last = text.size();
if(line<nlines+current && line>=current)
{
if (m.bgColor != DarkBlue) textArea.addRectangle(2, (line-current)*20, 234, 20, m.bgColor);
if (text.size() == m.text.size())
{
if(!m.shown && (m.firstGroup || m.ack)) playSinfo();
m.shown = true;
textArea.addText(date, 2, 4 + (line-current)*20, 10, m.fgColor, UP | LEFT, m.firstGroup);
}
if (m.bgColor != DarkBlue) textArea.addRectangle(2, (line-current)*20, 234, 20, m.bgColor);
textArea.addText(text.substr(0, last), 48, 2 + (line-current)*20, 12, m.fgColor, UP | LEFT, m.firstGroup);
}
++line;
Expand Down

0 comments on commit 118e7ad

Please sign in to comment.