* Underscore in rivafb
@ 2001-04-04 22:25 Stuart McFadden
2001-04-04 23:16 ` Petr Vandrovec
0 siblings, 1 reply; 4+ messages in thread
From: Stuart McFadden @ 2001-04-04 22:25 UTC (permalink / raw)
To: linux-kernel
Hi,
The flashing block in rivafb was annoying me, so here is a diff (against
vanilla 2.4.3 ) of a quick hack in case anyone else was having the same problem.
Stuarty,
diff -urN linux.pure/drivers/video/riva/fbdev.c linux/drivers/video/riva/fbdev.c
--- linux.pure/drivers/video/riva/fbdev.c Wed Apr 4 22:34:19 2001
+++ linux/drivers/video/riva/fbdev.c Wed Apr 4 22:26:43 2001
@@ -534,7 +534,7 @@
struct riva_cursor *c = rinfo->cursor;
int i, j, idx;
- if (c) {
+ if (c) {
if (width <= 0 || height <= 0) {
width = 8;
height = 16;
@@ -547,13 +547,16 @@
idx = 0;
- for (i = 0; i < height; i++) {
- for (j = 0; j < width; j++,idx++)
- c->image[idx] = CURSOR_COLOR;
- for (j = width; j < MAX_CURS; j++,idx++)
+ for (i = MAX_CURS; i > height + 2; i--)
+ for (j = 0; j < MAX_CURS; j++,idx++)
c->image[idx] = TRANSPARENT_COLOR;
+ for (i = height + 2; i > height; i--) {
+ for (j = 0; j < width; j++,idx++)
+ c->image[idx] = CURSOR_COLOR;
+ for (j = width; j < MAX_CURS;j++,idx++)
+ c->image[idx] = TRANSPARENT_COLOR;
}
- for (i = height; i < MAX_CURS; i++)
+ for (i = height; i > 0; i--)
for (j = 0; j < MAX_CURS; j++,idx++)
c->image[idx] = TRANSPARENT_COLOR;
}
--
Start the day with a smile. After that you can be your nasty old self again.
- - - - - - - - - - - - - - - - - - - - -
Stuarty McFadden stuartymcf@netgames-uk.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Underscore in rivafb
2001-04-04 22:25 Underscore in rivafb Stuart McFadden
@ 2001-04-04 23:16 ` Petr Vandrovec
0 siblings, 0 replies; 4+ messages in thread
From: Petr Vandrovec @ 2001-04-04 23:16 UTC (permalink / raw)
To: Stuart McFadden; +Cc: linux-kernel
Stuart McFadden wrote:
>
> Hi,
> The flashing block in rivafb was annoying me, so here is a diff (against
> vanilla 2.4.3 ) of a quick hack in case anyone else was having the same problem.
Get a look at
drivers/video/matrox/matroxfb_misc:matroxfb_createcursorshape, and
its callers, matroxfb_*_createcursor. If you'll use
conp->vc_cursor_type, standard
escape sequences for disabling cursor and for shape selection will work
on
riva then...
Petr Vandrovec
vandrove@vc.cvut.cz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Underscore in rivafb
@ 2001-04-05 4:05 James Simmons
2001-04-05 10:07 ` Stuart McFadden
0 siblings, 1 reply; 4+ messages in thread
From: James Simmons @ 2001-04-05 4:05 UTC (permalink / raw)
To: Stuart McFadden; +Cc: Linux Kernel Mailing List
linux/Documentation/VGA-softcursor.txt
MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.
James Simmons [jsimmons@linux-fbdev.org] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Underscore in rivafb
2001-04-05 4:05 James Simmons
@ 2001-04-05 10:07 ` Stuart McFadden
0 siblings, 0 replies; 4+ messages in thread
From: Stuart McFadden @ 2001-04-05 10:07 UTC (permalink / raw)
To: jsimmons; +Cc: linux-kernel
>linux/Documentation/VGA-softcursor.txt
Thanks, but I only seem to be able to change the colour of the cursor,
not the shape.
--
My polyvinyl cowboy wallet was made in Hong Kong by Montgomery Clift!
- - - - - - - - - - - - - - - - - - - - -
Stuarty McFadden stuartymcf@netgames-uk.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-04-05 10:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-04 22:25 Underscore in rivafb Stuart McFadden
2001-04-04 23:16 ` Petr Vandrovec
-- strict thread matches above, loose matches on Subject: below --
2001-04-05 4:05 James Simmons
2001-04-05 10:07 ` Stuart McFadden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox