Refresh screen on reader exit to heal ghosting

This commit is contained in:
jpirnay
2026-04-07 22:10:17 +02:00
parent fb331ae122
commit 16fd0bbba1
4 changed files with 12 additions and 0 deletions
+6
View File
@@ -59,6 +59,12 @@ inline void displayWithRefreshCycle(const GfxRenderer& renderer, int& pagesUntil
}
}
inline void enforceExitFullRefresh(const GfxRenderer& renderer) {
// Reader exits can leave visible ghosting when the next screen is rendered with a fast LUT.
// Force one full waveform pass before leaving the reader stack.
renderer.displayBuffer(HalDisplay::FULL_REFRESH);
}
// Grayscale anti-aliasing pass. Renders content twice (LSB + MSB) to build
// the grayscale buffer. Only the content callback is re-rendered — status bars
// and other overlays should be drawn before calling this.