Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored floating_label implementation
* Store label as a texture instead of creating a texture from a surface every draw cycle * Restored expired label removal and alpha fadeout (was accidentally removed earlier in my refactoring) * Use alpha field of bg_color member for background color * Draw tooltip backgrounds procedurally instead of with surfaces and part of the label texture itself. See included comment for small caveat.
- Loading branch information
Showing
3 changed files
with
122 additions
and
91 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
Oops, something went wrong.