From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=missing; spf=permerror, err=parse error for token &{10 18 sdn.klaviyomail.com}: permanent DNS error (domain: starlabs.systems, ip: 212.23.1.22, mailfrom: sean@starlabs.systems) 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: [PATCH] MdeModulePkg/GraphicsConsole: don't draw cursor at 0,0 Date: Fri, 28 Jan 2022 21:38:07 +0000 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Originating-smarthost01c-IP: [217.155.46.38] Feedback-ID: 217.155.46.38 Content-Transfer-Encoding: quoted-printable 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 ( =0D CurrentMode =3D This->Mode;=0D =0D - if (!CurrentMode->CursorVisible) {=0D + if (!CurrentMode->CursorVisible ||=0D + (CurrentMode->CursorColumn =3D=3D 0 && CurrentMode->CursorRow =3D=3D= 0 )) {=0D return EFI_SUCCESS;=0D }=0D =0D --=20 2.32.0