Skip to content

fix(sprite): accept compact palettes in version 2 sprites - #7

Merged
hzqst merged 1 commit into
mainfrom
fix/short-sprite-palette
Nov 27, 2026
Merged

hzqst merged 1 commit into
mainfrom
fix/short-sprite-palette

Conversation

@hzqst

@hzqst hzqst commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Version 2 sprites can store fewer than 256 RGB entries. Use the encoded count to locate the first frame and accept counts from 1 through 256. The public header documents the padding required by consumers that use a full in-memory palette.

The DLL integration tests cover compact palettes, truncated frames, empty and oversized palettes, and the existing full-palette fixtures. Both x86 Debug and Release build scripts passed CTest and installed-DLL smoke tests. Both installed DLLs also accepted a real two-color, 512 × 48 sprite. The repository format check passed.

Co-Authored-By: Codex <codex@openai.com>
@hzqst
hzqst merged commit 29cc64d into main Nov 27, 2026
3 checks passed
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.

1 participant