From: Pavel Machek <pavel@ucw.cz>
To: kernel list <linux-kernel@vger.kernel.org>,
jgarzik@pobox.com,
Rusty trivial patch monkey Russell <trivial@rustcorp.com.au>,
Andrew Morton <akpm@zip.com.au>
Subject: Fix softcursor in 2.6.X
Date: Sat, 3 Jan 2004 16:33:11 +0100 [thread overview]
Message-ID: <20040103153310.GA617@elf.ucw.cz> (raw)
Hi!
Softcursor was broken for half of 2.5 series. This fixes it by first
hiding cursor _then_ hiding softcursor. Very simple mistake... Please
apply,
Pavel
--- tmp/linux/drivers/char/vt.c 2003-10-18 20:26:33.000000000 +0200
+++ linux/drivers/char/vt.c 2004-01-03 16:08:44.000000000 +0100
@@ -530,17 +530,22 @@
sw->con_putc(vc_cons[currcons].d, i, y, x);
}
-static void hide_cursor(int currcons)
+static void hide_softcursor(int currcons)
{
- if (currcons == sel_cons)
- clear_selection();
if (softcursor_original != -1) {
scr_writew(softcursor_original,(u16 *) pos);
if (DO_UPDATE)
sw->con_putc(vc_cons[currcons].d, softcursor_original, y, x);
softcursor_original = -1;
}
+}
+
+static void hide_cursor(int currcons)
+{
+ if (currcons == sel_cons)
+ clear_selection();
sw->con_cursor(vc_cons[currcons].d,CM_ERASE);
+ hide_softcursor(currcons);
}
static void set_cursor(int currcons)
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
next reply other threads:[~2004-01-03 15:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-03 15:33 Pavel Machek [this message]
2004-01-08 1:13 ` James Simmons
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-all 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=20040103153310.GA617@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@zip.com.au \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/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
all inboxes | Powered by JetHome®