Align popup with sleep button.

This commit is contained in:
Jonas Diemer 2025-12-19 13:49:55 +01:00
parent 95cf1dcfc3
commit 47c75658e9

View File

@ -81,7 +81,7 @@ void SleepActivity::renderPopup(const char* message) const {
constexpr int margin = 20;
// Round all coordinates to 8 pixel boundaries
const int x = ((GfxRenderer::getScreenWidth() - textWidth - margin * 2) / 2 + 7) / 8 * 8;
constexpr int y = 56;
constexpr int y = 117;
const int w = (textWidth + margin * 2 + 7) / 8 * 8;
const int h = (renderer.getLineHeight(READER_FONT_ID) + margin * 2 + 7) / 8 * 8;
// renderer.clearScreen();