-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MythUIText: Fix a fringe case when a single line of text is *just* the
wrong size, and is being cutdown. QFontMetrics seems to think more 'text' fits in a given width, than QTextLine. I don't know how to determine exactly what the difference is, so tell QFontMetrics that the width is averageCharWidth() less than it really is. Also force the text to be rendered, even when QTextLine thinks it doesn't fit, in case averageCharWidth() is too small. This may result in not all of the '...' from being rendered, but it is better than rendering no text at all.
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 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