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

Reduce code duplication in ICN decode and a little speed-up for transform decode #9230

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

Districh-ru
Copy link
Collaborator

This PR combines duplicated code for the same color pixels consequence, does Transform type value calculation only if transformValue & 0x40 is true and adds a TODO to decode (by checking one bit: transformValue & 0x80) and store the shining contour data which is used in some images, in example:

img
img img

Using this contour data should help us close #3319

@Districh-ru Districh-ru added the improvement New feature, request or improvement label Oct 23, 2024
@Districh-ru Districh-ru added this to the 1.1.4 milestone Oct 23, 2024
@Districh-ru Districh-ru self-assigned this Oct 23, 2024
@ihhub ihhub merged commit acfec1d into ihhub:master Oct 25, 2024
21 checks passed
@ihhub
Copy link
Owner

ihhub commented Oct 25, 2024

@Districh-ru , thank you very much for these improvements!

@Districh-ru Districh-ru deleted the icn-decode-update branch October 25, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature, request or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

View Mines and View Resources screens, differences from the original game
2 participants