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

Fix "Smoke, electricity, etc. all invisible." with tiles #10131

Merged
merged 1 commit into from Nov 22, 2014

Conversation

Projects
None yet
2 participants
@BevapDin
Copy link
Contributor

commented Nov 22, 2014

Fixes http://smf.cataclysmdda.com/index.php?topic=8402.0

I can reproduce this with software rendered on and tiles (non-fullscreen) and several tilesets.
However for some tilesets the acid is visible and smoke is not (Deon's).
For others (MShock24) neither smoke, nor acid nor sparks are visible.
The retro tilsets display all three fields (it seems this tileset does not use transparency as much as the other).

As the transparency is applied through the alpha channel, it seems to be caused by the display_buffer not having an alpha channel (only RGB, 8 bit each - RGB888). This changes the display buffer to have an alpha channel. It works fine for me and fixes the issue.

@Rivet-the-Zombie Rivet-the-Zombie self-assigned this Nov 22, 2014

Rivet-the-Zombie added a commit that referenced this pull request Nov 22, 2014

Merge pull request #10131 from BevapDin/sdl-software-renderer
Fix "Smoke, electricity, etc. all invisible." with tiles

@Rivet-the-Zombie Rivet-the-Zombie merged commit 80e9ef5 into CleverRaven:master Nov 22, 2014

@BevapDin BevapDin deleted the BevapDin:sdl-software-renderer branch Nov 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.