From 701a19042982452a24cc5a945c41f33a4a0cb1b3 Mon Sep 17 00:00:00 2001 From: Richard Wheeler <2762690+zephyris@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:05:32 +0000 Subject: [PATCH] Fix: Swapped handling of high bit depth and extra zoom in nml preprocessing The preprocessor was retaining 32bpp images when 4x zoom was requested, and 4x zoom when 32bpp images were requested. Not a problem for building the current variants (1x 8bpp, 4x 32bpp) because it was 'all or nothing', but caused the wrong variant to be generated if 1x 32bpp or 4x 8bpp was requested. --- templates/nml_preprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nml_preprocessor.py b/templates/nml_preprocessor.py index 41b03d75..2e809012 100644 --- a/templates/nml_preprocessor.py +++ b/templates/nml_preprocessor.py @@ -109,7 +109,7 @@ def handle_alternates(line): # define alternate comment strings comment_alternate = ["#ez ", "#32 "] - settings_alternate = [high_bitdepth, extra_zoom] + settings_alternate = [extra_zoom, high_bitdepth] for c in range(len(comment_alternate)): comment = comment_alternate[c] if comment in line: