Revert "Merge pull request #25 from jpirnay/fix-pr1582" and refactor koreader

This commit is contained in:
jpirnay
2026-04-07 20:24:51 +02:00
parent fb331ae122
commit abbf69649e
17 changed files with 516 additions and 268 deletions
+5
View File
@@ -1917,7 +1917,12 @@ void GfxRenderer::restoreBwBuffer() {
}
if (missingChunks) {
// Store failed part-way (or was skipped), so we cannot restore BW bytes safely.
// Still cleanup grayscale staging buffers to avoid retaining large temporary
// allocations that can later starve TLS handshakes.
display.cleanupGrayscaleBuffers(frameBuffer);
freeBwBufferChunks();
LOG_ERR("GFX", "BW restore skipped due to missing chunks; cleaned grayscale buffers only");
return;
}