* Fix softcursor in 2.6.X
@ 2004-01-03 15:33 Pavel Machek
2004-01-08 1:13 ` James Simmons
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2004-01-03 15:33 UTC (permalink / raw)
To: kernel list, jgarzik, Rusty trivial patch monkey Russell, Andrew Morton
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?]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix softcursor in 2.6.X
2004-01-03 15:33 Fix softcursor in 2.6.X Pavel Machek
@ 2004-01-08 1:13 ` James Simmons
0 siblings, 0 replies; 2+ messages in thread
From: James Simmons @ 2004-01-08 1:13 UTC (permalink / raw)
To: Pavel Machek
Cc: kernel list, jgarzik, Rusty trivial patch monkey Russell,
Andrew Morton, Linux Fbdev development list
> 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,
Just tested with vgacon, fbcon with software cursor and hardware cursor.
It worked!!!!!
Thank you, Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-08 1:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-03 15:33 Fix softcursor in 2.6.X Pavel Machek
2004-01-08 1:13 ` James Simmons
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).