mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-22 12:58:39 +00:00
Fix the look of the block cursor at low resolutions.
This commit is contained in:
parent
7bd8b56657
commit
eb413f79e4
@ -2265,7 +2265,7 @@ void KTerminalDisplay::drawCursor(QPainter* painter,
|
|||||||
bool& invertCharacterColor)
|
bool& invertCharacterColor)
|
||||||
{
|
{
|
||||||
QRectF cursorRect = rect;
|
QRectF cursorRect = rect;
|
||||||
cursorRect.setHeight(_fontHeight - _lineSpacing - 1);
|
cursorRect.setHeight(_fontHeight - _lineSpacing);
|
||||||
|
|
||||||
if (!_cursorBlinking)
|
if (!_cursorBlinking)
|
||||||
{
|
{
|
||||||
@ -2280,8 +2280,8 @@ void KTerminalDisplay::drawCursor(QPainter* painter,
|
|||||||
// it is draw entirely inside 'rect'
|
// it is draw entirely inside 'rect'
|
||||||
int penWidth = qMax(1,painter->pen().width());
|
int penWidth = qMax(1,painter->pen().width());
|
||||||
|
|
||||||
painter->drawRect(cursorRect.adjusted( penWidth/2,
|
painter->drawRect(cursorRect.adjusted( penWidth/2 + penWidth%2,
|
||||||
penWidth/2,
|
penWidth/2 + penWidth%2,
|
||||||
- penWidth/2 - penWidth%2,
|
- penWidth/2 - penWidth%2,
|
||||||
- penWidth/2 - penWidth%2));
|
- penWidth/2 - penWidth%2));
|
||||||
if ( hasFocus() )
|
if ( hasFocus() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user