From: Stuart McFadden <stuartymcf@netgames-uk.com>
To: linux-kernel@vger.kernel.org
Subject: Underscore in rivafb
Date: Wed, 4 Apr 2001 23:25:12 +0100 [thread overview]
Message-ID: <200104042225.f34MPCv00980@Xerxes.buttmunch> (raw)
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
next reply other threads:[~2001-04-04 22:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-04 22:25 Stuart McFadden [this message]
2001-04-04 23:16 ` Underscore in rivafb 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
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=200104042225.f34MPCv00980@Xerxes.buttmunch \
--to=stuartymcf@netgames-uk.com \
--cc=linux-kernel@vger.kernel.org \
/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