Fix missing EpdFontFamily:: after rebase.

This commit is contained in:
Jonas Diemer 2025-12-31 12:53:43 +01:00
parent 60eb8e27aa
commit 268a958265

View File

@ -40,7 +40,7 @@ void SleepActivity::onEnter() {
} }
void SleepActivity::renderPopup(const char* message) const { void SleepActivity::renderPopup(const char* message) const {
const int textWidth = renderer.getTextWidth(UI_12_FONT_ID, message, BOLD); const int textWidth = renderer.getTextWidth(UI_12_FONT_ID, message, EpdFontFamily::BOLD);
constexpr int margin = 20; constexpr int margin = 20;
const int x = (renderer.getScreenWidth() - textWidth - margin * 2) / 2; const int x = (renderer.getScreenWidth() - textWidth - margin * 2) / 2;
constexpr int y = 117; constexpr int y = 117;
@ -49,7 +49,7 @@ void SleepActivity::renderPopup(const char* message) const {
// renderer.clearScreen(); // renderer.clearScreen();
renderer.fillRect(x - 5, y - 5, w + 10, h + 10, true); renderer.fillRect(x - 5, y - 5, w + 10, h + 10, true);
renderer.fillRect(x + 5, y + 5, w - 10, h - 10, false); renderer.fillRect(x + 5, y + 5, w - 10, h - 10, false);
renderer.drawText(UI_12_FONT_ID, x + margin, y + margin, message, true, BOLD); renderer.drawText(UI_12_FONT_ID, x + margin, y + margin, message, true, EpdFontFamily::BOLD);
renderer.displayBuffer(); renderer.displayBuffer();
} }