mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 23:27:38 +03:00
Fix missing EpdFontFamily:: after rebase.
This commit is contained in:
parent
60eb8e27aa
commit
268a958265
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user