Skip to content

Fix: Swapped handling of high bit depth and extra zoom in nml preprocessing#242

Merged
zephyris merged 1 commit intomainfrom
fix-8-32-1x-4x-preprocessing
Jan 26, 2026
Merged

Fix: Swapped handling of high bit depth and extra zoom in nml preprocessing#242
zephyris merged 1 commit intomainfrom
fix-8-32-1x-4x-preprocessing

Conversation

@zephyris
Copy link
Contributor

The grf build pipeline uses preprocessing of nml files to remove or retain lines marked with combinations of #32 and #ez as requested, to make nml variants which include 32bpp and 4x extra zoom sprites when wanted.

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 Classic, 4x 32bpp High Def) because it was 'all or nothing', but caused the nml for the wrong variant to be generated if 1x 32bpp or 4x 8bpp was requested.

…essing

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.
@zephyris zephyris merged commit 98ad7e7 into main Jan 26, 2026
1 check passed
@zephyris zephyris deleted the fix-8-32-1x-4x-preprocessing branch January 26, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants