Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug 3491 - TTF_RenderText_Blended ignores alpha channel
xyzdragon The last argument "TTF_RenderText_Blended" takes is "SDL_Color fg". SDL_Color in turn has the members r,g,b,a. But member a is completely ignored with no mention in the documentation here https://www.libsdl.org/projects/docs/SDL_ttf/SDL_ttf_44.html Either the alpha channel should be heeded or it should be explicitly mentioned that it isn't in the documentation, because the SDL_Color struct implies that fg.a will be processed. I hoped instead of the alpha channel of the rendering being in 0..255 that it would be in 0..fg.a, i.e. every alpha value would be multiplied by fg.a/255.
- Loading branch information
Showing
3 changed files
with
125 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters