Some fixes

This commit is contained in:
jpirnay
2026-04-08 09:49:44 +02:00
parent 66508258d3
commit 655b5d4678
2 changed files with 47 additions and 8 deletions
@@ -290,6 +290,10 @@ bool BmpViewerActivity::renderDecodedImage(const bool showControls) {
void BmpViewerActivity::toggleDisplayMode() {
grayscaleDisplay = !grayscaleDisplay;
// Switching between 1-bit BW and 4-level grayscale requires a full refresh to clear
// ghosting from the previous mode — a half refresh leaves visible residue.
renderer.clearScreen();
renderer.displayBuffer(HalDisplay::FULL_REFRESH);
if (!renderCurrentImage()) {
renderError(tr(STR_COULD_NOT_RENDER_IMAGE));
}