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

Libtcod blanks the first glyph of tilesets without warning. #142

Open
HexDecimal opened this issue Dec 30, 2022 · 0 comments
Open

Libtcod blanks the first glyph of tilesets without warning. #142

HexDecimal opened this issue Dec 30, 2022 · 0 comments
Labels

Comments

@HexDecimal
Copy link
Collaborator

Functions such as TCOD_tileset_load will load tilesets in a way where the first tile is not rendered.

I assume this is because the first tile is loaded into tile index zero, which is special cased by several functions. The tileset will correctly map the codepoint to zero, then the special case will take over and the foreground will be skipped.

An important note is that the first tile is also used to detect the background color. So fixing this might cause tilesets to be loaded without a resolved alpha layer, causing background colors to be ignored.

@HexDecimal HexDecimal added the bug label Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant