Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force 10-byte frame header for CLX #153

Merged
merged 1 commit into from
Oct 12, 2024
Merged

Force 10-byte frame header for CLX #153

merged 1 commit into from
Oct 12, 2024

Conversation

StephenCWills
Copy link
Member

The CLX format repurposes the CL2 header to encode the width and height instead of a jump table. The CL2 format needs to allocate additional space for the jump table if the image is taller than 5 CEL blocks, but the CLX format should never require any additional space beyond the minimum 10 bytes.

https://github.com/diasurgical/devilutionX/blob/3caa80f453d811ab668936df67fea22a57d1a7cd/Source/engine/clx_sprite.hpp#L11-L18

@AJenbo AJenbo merged commit 8f4efcc into master Oct 12, 2024
5 checks passed
@AJenbo AJenbo deleted the clx-header-size branch October 12, 2024 07:17
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