[konsole] [Bug 402589] Text cursor disappears or doesn't move

Kurt Hindenburg bugzilla_noreply at kde.org
Thu Mar 7 01:35:26 GMT 2019


https://bugs.kde.org/show_bug.cgi?id=402589

Kurt Hindenburg <kurt.hindenburg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://commits.kde.org/kon |https://commits.kde.org/kon
                   |sole/eccfb1f62bbf67ebffee11 |sole/9af659c73e3203e1d5ef38
                   |e241bd05757b826ff1          |73fa6c0144258b9673

--- Comment #8 from Kurt Hindenburg <kurt.hindenburg at gmail.com> ---
Git commit 9af659c73e3203e1d5ef3873fa6c0144258b9673 by Kurt Hindenburg, on
behalf of Wolfgang Bauer.
Committed on 07/03/2019 at 01:32.
Pushed by hindenburg into branch 'Applications/18.12'.

Fix ibeam and underline cursor rendering

Summary:
Since anti-aliasing was enabled in the painter, coordinates need to
be shifted half a pixel so that they align with the pixel grid,
otherwise the result gets "blurred" due to the anti-aliasing.
And as parts of the blurred shape leak outside the cursor rectangle,
this also leaves artifacts when the cursor moves or blinks as these
parts are not cleared.

This is basically the same as commit
e7085310d6d594823d0ed491fa8bdbd99dec4932 for the
standard block cursor.

Test Plan:
- Switch cursor shape to "I-Beam" or "Underline" in the "Advanced"
profile settings

The cursors are a single line again now, before they were blurred by
anti-aliasing.

Screenshots:
Before:
{F6656366}
{F6656370}

After:
{F6656371}
{F6656373}

Also, there are no more artifacts when the cursor is moved or
cursor blinking is enabled.

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D19513

(cherry picked from commit eccfb1f62bbf67ebffee11e241bd05757b826ff1)

M  +10   -8    src/TerminalDisplay.cpp

https://commits.kde.org/konsole/9af659c73e3203e1d5ef3873fa6c0144258b9673

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list