Proper refresh on exit

This commit is contained in:
jpirnay
2026-04-08 11:22:21 +02:00
parent 7c44a92360
commit bcf49a943a
4 changed files with 47 additions and 22 deletions
+3 -2
View File
@@ -88,8 +88,9 @@ 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);
// Schedule the next displayed screen to use a full refresh, rather than refreshing
// the current reader screen as it closes.
renderer.setNextDisplayRefreshMode(HalDisplay::FULL_REFRESH);
}
// Grayscale anti-aliasing pass. Renders content twice (LSB + MSB) to build
+1 -2
View File
@@ -123,8 +123,7 @@ void BmpViewerActivity::onExit() {
saveDitherSettingsIfNeeded();
#endif
Activity::onExit();
renderer.clearScreen();
renderer.displayBuffer(HalDisplay::FULL_REFRESH);
ReaderUtils::enforceExitFullRefresh(renderer);
}
bool BmpViewerActivity::renderBmpImage(const bool showControls) {