diff --git a/src/terminalDisplay/TerminalPainter.cpp b/src/terminalDisplay/TerminalPainter.cpp index 6872646a2..47d290209 100644 --- a/src/terminalDisplay/TerminalPainter.cpp +++ b/src/terminalDisplay/TerminalPainter.cpp @@ -584,14 +584,12 @@ void TerminalPainter::updateCursorTextColor(const QColor &backgroundColor, QColo } } -void TerminalPainter::drawCursor(QPainter &painter, const QRectF &rect, const QColor &foregroundColor, const QColor &backgroundColor, QColor &characterColor) +void TerminalPainter::drawCursor(QPainter &painter, const QRectF &cursorRect, const QColor &foregroundColor, const QColor &backgroundColor, QColor &characterColor) { if (m_parentDisplay->cursorBlinking()) { return; } - const QRectF& cursorRect = rect; - QColor color = m_parentDisplay->terminalColor()->cursorColor(); QColor cursorColor = color.isValid() ? color : foregroundColor; diff --git a/src/terminalDisplay/TerminalPainter.h b/src/terminalDisplay/TerminalPainter.h index a5fea25c8..55159dc32 100644 --- a/src/terminalDisplay/TerminalPainter.h +++ b/src/terminalDisplay/TerminalPainter.h @@ -86,7 +86,7 @@ private: void updateCursorTextColor(const QColor &backgroundColor, QColor &characterColor); // draws the cursor character - void drawCursor(QPainter &painter, const QRectF &rect, const QColor &foregroundColor, const QColor &backgroundColor, QColor &characterColor); + void drawCursor(QPainter &painter, const QRectF &cursorRect, const QColor &foregroundColor, const QColor &backgroundColor, QColor &characterColor); TerminalDisplay *m_parentDisplay = nullptr; void drawBelowText(QPainter &painter,