From cf4f7be8af0ce104bbddc792590a41173cad08ff Mon Sep 17 00:00:00 2001 From: Justin Mitchell Date: Mon, 6 Jul 2026 19:01:21 -0400 Subject: [PATCH] Reformat anti-aliasing condition for readability Consolidate multi-line conditional statement in GfxRenderer onto fewer lines without changing logic --- lib/GfxRenderer/GfxRenderer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/GfxRenderer/GfxRenderer.cpp b/lib/GfxRenderer/GfxRenderer.cpp index 6ccbc902..8ae7d0e7 100644 --- a/lib/GfxRenderer/GfxRenderer.cpp +++ b/lib/GfxRenderer/GfxRenderer.cpp @@ -289,8 +289,7 @@ static void renderCharImpl(const GfxRenderer& renderer, GfxRenderer::RenderMode // same period-2 patterns as fillRectDither (dark grey = 50% // checkerboard, light grey = 25%), approximating AA in a single // BW pass. Skipped pixels leave the background untouched. - if (!renderer.isFastAntiAliasing() || bmpVal == 0 || - (bmpVal == 1 && ((screenX + screenY) & 1) == 0) || + if (!renderer.isFastAntiAliasing() || bmpVal == 0 || (bmpVal == 1 && ((screenX + screenY) & 1) == 0) || (bmpVal == 2 && (screenX & 1) == 0 && (screenY & 1) == 0)) { renderer.drawPixel(screenX, screenY, pixelState); }