Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI2/Minimap: refactored drawing code
Instead of using the minimap surface method (which was getting converted from surface to texture every draw cycle since the caching mechanism the canvas implemented wasn't available and the weird custom cache the widget implemented itself didn't seem to do actually do anything) we use the new render-to- canvas-texture method which is a lot cleaner and should be a lot faster. This also means we no longer override styled_widget::impl_draw_background. Do note I might use the design of the removed cache here to add some age functionality to the font::pango_text cache.
- Loading branch information
Showing
2 changed files
with
35 additions
and
193 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