From: "Sean Rhodes" <sean@starlabs.systems>
To: devel@edk2.groups.io
Cc: Matt DeVillier <matt.devillier@gmail.com>
Subject: [PATCH] MdeModulePkg/GraphicsConsole: don't draw cursor at 0,0
Date: Fri, 28 Jan 2022 21:38:07 +0000 [thread overview]
Message-ID: <b9883d307288c0217526f1e4722e9ef824c90ddc.1643405868.git.sean@starlabs.systems> (raw)
From: Matt DeVillier <matt.devillier@gmail.com>
Prevents cursor from flashing on screen when
changing modes or clearing the screen.
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
---
.../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.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 (
CurrentMode = This->Mode;
- if (!CurrentMode->CursorVisible) {
+ if (!CurrentMode->CursorVisible ||
+ (CurrentMode->CursorColumn == 0 && CurrentMode->CursorRow == 0 )) {
return EFI_SUCCESS;
}
--
2.32.0
next reply other threads:[~2022-01-28 21:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 21:38 Sean Rhodes [this message]
2022-01-29 0:53 ` [edk2-devel] [PATCH] MdeModulePkg/GraphicsConsole: don't draw cursor at 0,0 Michael D Kinney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b9883d307288c0217526f1e4722e9ef824c90ddc.1643405868.git.sean@starlabs.systems \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox