-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui: Improve support for fractional scaling in command widget on Wind…
…ows. For long lines, the incorrect character might be repainted when moving the cursor. Use fractional character widths to derive the index of the character in a line at the current cursor position in pixels. * libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp (QConsolePrivate::m_charSize): Use floating point type QSizeF. (QConsolePrivate::updateConsoleSize): Determine (approximate) average character width of used font in floating point precision. (QConsolePrivate::posToCell, QConsolePrivate::cursorRect, QConsolePrivate::boundingRect, QWinTerminalImpl::viewPaintEvent): Adapt to using average character width in floating point precision.
- Loading branch information
Showing
1 changed file
with
38 additions
and
20 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