From f18c94ee7ab1f203a2c2fe2ab7ff919307dfaa85 Mon Sep 17 00:00:00 2001 From: hundundadi <72859840+hundundadi@users.noreply.github.com> Date: Fri, 1 Dec 2023 09:36:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E9=97=AA=E7=83=81CPU=E5=8D=A0=E7=94=A8=E8=BE=83=E9=AB=98?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: 修复图标闪烁CPU占用较高的问题 Log: 修复图标闪烁CPU占用较高的问题 Bug: https://pms.uniontech.com/bug-view-231445.html --- 3rdparty/terminalwidget/lib/TerminalDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/terminalwidget/lib/TerminalDisplay.cpp b/3rdparty/terminalwidget/lib/TerminalDisplay.cpp index 7d8f82718..162dd21b6 100644 --- a/3rdparty/terminalwidget/lib/TerminalDisplay.cpp +++ b/3rdparty/terminalwidget/lib/TerminalDisplay.cpp @@ -1862,8 +1862,8 @@ QRect TerminalDisplay::widgetToImage(const QRect &widgetArea) const void TerminalDisplay::updateCursor() { -// QRect cursorRect = imageToWidget( QRect(cursorPosition(),QSize(1,1)) ); - update(); + QRect cursorRect = imageToWidget( QRect(cursorPosition(),QSize(1,1)) ); + update(cursorRect); } void TerminalDisplay::blinkCursorEvent()