From nobody Sun Nov 24 14:30:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+86188+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86188+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1643413486; cv=none; d=zohomail.com; s=zohoarc; b=NLWPbWJ36u5bntKtmxYeG31r9ssrP2t9teRlNh2E2OPdDS3m5a1E5jXxutkZGOP6v76XA58dDIwWD6G0I+3BZcgl8VZSNXe2ahweJlx2+t2/iQzBL4DD9l0WoutA9ikjjUh5daNgoms/2Ky0oIb4mhA/GCfF3qudTJzyqtEc9fc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643413486; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=UXddeHfRaHJMLAfMKkzbB8Wa22biSmPhlWitfFCcC9M=; b=NAl/hz2vHG1shKpoOd9X5H7mT/5JG+Oucqb8pvITUOjnuMr7vj8+eDQ25RwGvadFgGcrGug7utKV3gCgu3W3NrvB9Gn90cPGcuvqYRInUUqPi4+CkoWyVAslc2TVO11S7+yVyCKkFz0XEsvn5fxG4bscaQSV30z6rEC15vcA2Io= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86188+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1643413486825484.8449359600485; Fri, 28 Jan 2022 15:44:46 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id Q4oPYY1788612xB4O5DIFlSp; Fri, 28 Jan 2022 15:44:46 -0800 X-Received: from smarthost01c.ixn.mail.zen.net.uk (smarthost01c.ixn.mail.zen.net.uk [212.23.1.22]) by mx.groups.io with SMTP id smtpd.web12.38.1643405891027198657 for ; Fri, 28 Jan 2022 13:38:11 -0800 X-Received: from [217.155.46.38] (helo=sean-StarBook.lan) by smarthost01c.ixn.mail.zen.net.uk with esmtp (Exim 4.90_1) (envelope-from ) id 1nDYwa-00064u-Mm; Fri, 28 Jan 2022 21:38:08 +0000 From: "Sean Rhodes" To: devel@edk2.groups.io Cc: Matt DeVillier Subject: [edk2-devel] [PATCH] MdeModulePkg/GraphicsConsole: don't draw cursor at 0,0 Date: Fri, 28 Jan 2022 21:38:07 +0000 Message-Id: MIME-Version: 1.0 X-Originating-smarthost01c-IP: [217.155.46.38] Feedback-ID: 217.155.46.38 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sean@starlabs.systems X-Gm-Message-State: U834d9DtgnosCtm5POl3yn56x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1643413486; bh=73zqgLQTASvJv3F8XiCzqGwhoHIXCsbSnCN9RnpI7ac=; h=Cc:Date:From:Reply-To:Subject:To; b=WaoBzHqXcQ7G+MSGLpQKXBC4IQ6+ZbXfxhMPx0mKFWY9n9YFfcBCR6ObW9RdjBVlLmw QXF31zXGH+6qSV+iYTCWrrI8X7s7RWTo2ZymR1Fjgr6mxThWX0ouuWAQYpL3rIGa4idK0 wfxvCHXoarSf5RE8HE8O3j1/+KE/AUxu8fM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1643413489321100021 Content-Type: text/plain; charset="utf-8" From: Matt DeVillier Prevents cursor from flashing on screen when changing modes or clearing the screen. Signed-off-by: Matt DeVillier --- .../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsCons= ole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 8f0cba9fcd..c803813a66 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -1940,7 +1940,8 @@ FlushCursor ( =20 CurrentMode =3D This->Mode; =20 - if (!CurrentMode->CursorVisible) { + if (!CurrentMode->CursorVisible || + (CurrentMode->CursorColumn =3D=3D 0 && CurrentMode->CursorRow =3D=3D= 0 )) { return EFI_SUCCESS; } =20 --=20 2.32.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86188): https://edk2.groups.io/g/devel/message/86188 Mute This Topic: https://groups.io/mt/88757874/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-