Minor fixes

This commit is contained in:
jpirnay
2026-04-07 23:28:51 +02:00
parent e035d698ed
commit 7168c46dec
2 changed files with 6 additions and 2 deletions
@@ -502,6 +502,8 @@ bool PngToFramebufferConverter::decodeToFramebuffer(const std::string& imagePath
// the 2-bit cache file format, but caching is disabled in this path
// (BmpViewerActivity passes an empty cachePath).
ctx.renderModeIsBW = (renderer.getRenderMode() == GfxRenderer::BW);
LOG_DBG("PNG", "Render mode at decode: %d (BW=%d) -> 1bit dither=%d", (int)renderer.getRenderMode(),
(int)GfxRenderer::BW, ctx.renderModeIsBW ? 1 : 0);
if (ctx.renderModeIsBW) {
ctx.atkinson1BitDitherer = new (std::nothrow) Atkinson1BitDitherer(ctx.dstWidth);
if (!ctx.atkinson1BitDitherer) {