mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21:40 +00:00
Merge branch 'master' into ota
This commit is contained in:
commit
511fe23b8a
@ -453,13 +453,15 @@ void CannedMessageModule::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *st
|
|||||||
display->setColor(WHITE);
|
display->setColor(WHITE);
|
||||||
display->drawStringMaxWidth(0 + x, 0 + y + FONT_HEIGHT_SMALL, x + display->getWidth(), cannedMessageModule->drawWithCursor(cannedMessageModule->freetext, cannedMessageModule->cursor));
|
display->drawStringMaxWidth(0 + x, 0 + y + FONT_HEIGHT_SMALL, x + display->getWidth(), cannedMessageModule->drawWithCursor(cannedMessageModule->freetext, cannedMessageModule->cursor));
|
||||||
} else {
|
} else {
|
||||||
display->setTextAlignment(TEXT_ALIGN_LEFT);
|
if (this->messagesCount > 0) {
|
||||||
display->setFont(FONT_SMALL);
|
display->setTextAlignment(TEXT_ALIGN_LEFT);
|
||||||
display->drawString(0 + x, 0 + y, cannedMessageModule->getPrevMessage());
|
display->setFont(FONT_SMALL);
|
||||||
display->setFont(FONT_MEDIUM);
|
display->drawString(0 + x, 0 + y, cannedMessageModule->getPrevMessage());
|
||||||
display->drawString(0 + x, 0 + y + FONT_HEIGHT_SMALL, cannedMessageModule->getCurrentMessage());
|
display->setFont(FONT_MEDIUM);
|
||||||
display->setFont(FONT_SMALL);
|
display->drawString(0 + x, 0 + y + FONT_HEIGHT_SMALL, cannedMessageModule->getCurrentMessage());
|
||||||
display->drawString(0 + x, 0 + y + FONT_HEIGHT_MEDIUM, cannedMessageModule->getNextMessage());
|
display->setFont(FONT_SMALL);
|
||||||
|
display->drawString(0 + x, 0 + y + FONT_HEIGHT_MEDIUM, cannedMessageModule->getNextMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user