forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibGUI: drawing spanned text no longer *horribly* inefficient
This makes drawing text with spans a lot faster. The previous implentation went character by character and then checked every span whether it contained the current character. This implentation asumes that the spans are sorted and goes span by span drawing all the characters contained at once. Any spans that are out of order will be ignored! Note: text wrapping is not (yet) supported
- Loading branch information
1 parent
00ef931
commit b76d245
Showing
1 changed file
with
109 additions
and
26 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