Skip to content

Commit 98ad7e7

Browse files
committed
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.
1 parent d09f762 commit 98ad7e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/nml_preprocessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def handle_alternates(line):
109109
# define alternate comment strings
110110
comment_alternate = ["#ez ", "#32 "]
111111

112-
settings_alternate = [high_bitdepth, extra_zoom]
112+
settings_alternate = [extra_zoom, high_bitdepth]
113113
for c in range(len(comment_alternate)):
114114
comment = comment_alternate[c]
115115
if comment in line:

0 commit comments

Comments
 (0)