From f2750356dea880278a5b71e57e1d1ff47236ffb0 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Tue, 14 Apr 2026 15:12:29 +0200 Subject: [PATCH] Full refresh for non-portrait mode --- src/activities/home/BookInfoActivity.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/activities/home/BookInfoActivity.cpp b/src/activities/home/BookInfoActivity.cpp index 7cf571a3..82791c6b 100644 --- a/src/activities/home/BookInfoActivity.cpp +++ b/src/activities/home/BookInfoActivity.cpp @@ -127,7 +127,14 @@ void BookInfoActivity::render(RenderLock&&) { // Fast path: only the description page / button hints changed. Reuse the // already-rendered header/cover/meta by clearing just those two bands. Cap // consecutive partial renders to bound e-ink ghosting buildup. - if (fullRenderDone && loadSucceeded && !description.empty() && partialRenderCount < MAX_PARTIAL_RENDERS) { + // + // Requires Portrait orientation: the hints-gutter location is derived below + // assuming the gutter sits at the bottom, which is only true in Portrait + // (PortraitInverted puts it at the top; landscape orientations put it on a + // side). In non-Portrait we fall through to a full render to avoid leaving + // stale button labels in the real gutter. + if (fullRenderDone && loadSucceeded && !description.empty() && partialRenderCount < MAX_PARTIAL_RENDERS && + renderer.getOrientation() == GfxRenderer::Portrait) { renderer.fillRect(descBandX, descBandY, descBandWidth, descBandHeight, false); renderer.fillRect(0, hintsBandY, renderer.getScreenWidth(), hintsBandHeight, false); renderDescriptionAndHints();