From 3e52fad331930005f7a7ee2b5f00c592d445763b Mon Sep 17 00:00:00 2001 From: jpirnay Date: Mon, 9 Mar 2026 19:51:28 +0100 Subject: [PATCH] Overlay always use portrait --- src/activities/boot_sleep/SleepActivity.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/activities/boot_sleep/SleepActivity.cpp b/src/activities/boot_sleep/SleepActivity.cpp index 630ac691..e44c2754 100644 --- a/src/activities/boot_sleep/SleepActivity.cpp +++ b/src/activities/boot_sleep/SleepActivity.cpp @@ -446,6 +446,9 @@ void SleepActivity::renderBlankSleepScreen() const { } void SleepActivity::renderOverlaySleepScreen() const { + // Overlay pictures always use portrait orientation regardless of the reader's orientation preference. + const auto savedOrientation = renderer.getOrientation(); + renderer.setOrientation(GfxRenderer::Portrait); const auto pageWidth = renderer.getScreenWidth(); const auto pageHeight = renderer.getScreenHeight(); @@ -614,5 +617,6 @@ void SleepActivity::renderOverlaySleepScreen() const { LOG_DBG("SLP", "No overlay image found, displaying page without overlay"); } + renderer.setOrientation(savedOrientation); renderer.displayBuffer(HalDisplay::HALF_REFRESH); }