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

Skip 'H' in background files if XGR_HIDDEN_FON is set #641

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

link2xt
Copy link

@link2xt link2xt commented May 8, 2024

Background file resource/actint/800x600/screens/b600.bmp
uses 'H' (72) to indicate background color.

When background is rendered to 2D buffer,
this "color" should be skipped to avoid shadowing
default buffer which is used to render the map.

Fixes #639

Background file `resource/actint/800x600/screens/b600.bmp`
uses 'H' (72) to indicate background color.

When background is rendered to 2D buffer,
this "color" should be skipped to avoid shadowing
default buffer which is used to render the map.
@CLAassistant
Copy link

CLAassistant commented May 8, 2024

CLA assistant check
All committers have signed the CLA.

@link2xt
Copy link
Author

link2xt commented May 8, 2024

Before this change it looks like XGR_HIDDEN_FON did nothing at all.

@link2xt
Copy link
Author

link2xt commented May 8, 2024

If this is not needed with up-to-date resources (I used resources from 1.45 Linux version from GOG.com) and they use 0 byte for transparent pixels, then I guess XGR_HIDDEN_FON constant should be removed.

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.

HD: World is not rendered
2 participants