2025-12-06 00:35:58 +11:00
|
|
|
#include "BootLogoScreen.h"
|
|
|
|
|
|
|
|
|
|
#include <EpdRenderer.h>
|
|
|
|
|
|
|
|
|
|
#include "images/CrossLarge.h"
|
|
|
|
|
|
|
|
|
|
void BootLogoScreen::onEnter() {
|
2025-12-06 12:56:39 +11:00
|
|
|
const auto pageWidth = renderer.getPageWidth();
|
|
|
|
|
const auto pageHeight = renderer.getPageHeight();
|
2025-12-06 00:35:58 +11:00
|
|
|
|
2025-12-06 12:56:39 +11:00
|
|
|
renderer.clearScreen();
|
2025-12-06 00:35:58 +11:00
|
|
|
// Location for images is from top right in landscape orientation
|
2025-12-06 12:56:39 +11:00
|
|
|
renderer.drawImage(CrossLarge, (pageHeight - 128) / 2, (pageWidth - 128) / 2, 128, 128);
|
2025-12-08 19:48:49 +11:00
|
|
|
const int width = renderer.getUiTextWidth("CrossPoint", BOLD);
|
|
|
|
|
renderer.drawUiText((pageWidth - width)/ 2, pageHeight / 2 + 70, "CrossPoint", true, BOLD);
|
|
|
|
|
const int bootingWidth = renderer.getSmallTextWidth("BOOTING");
|
|
|
|
|
renderer.drawSmallText((pageWidth - bootingWidth) / 2, pageHeight / 2 + 95, "BOOTING");
|
|
|
|
|
renderer.flushDisplay();
|
2025-12-06 00:35:58 +11:00
|
|
|
}
|