From: Petr Stehlik <pstehlik@sophics.cz>
To: adaplas@pol.net
Cc: linux-fbdev-devel@lists.sourceforge.net,
Geert Uytterhoeven <geert@linux-m68k.org>,
"Christian T. Steigies" <cts@debian.org>
Subject: Re: patch fixing background next to penguin logo in monochrome
Date: Thu, 12 Aug 2004 14:02:51 +0200 [thread overview]
Message-ID: <1092312171.27772.73.camel@joy.sophics> (raw)
In-Reply-To: <200409120616.43518.adaplas@hotpop.com>
V Ne, 12. 09. 2004 v 00:16, Antonino A. Daplas pí¹e:
> On Thursday 12 August 2004 03:56, Petr Stehlik wrote:
> > I have developed a simple workaround for a problem existing in
> > framebuffer when it interprets VGA attribute bits in monochrome mode.
> > Instead of empty chars we get underlines
> Anyway, the simplest solution is to use a vc->vc_video_erase_char with the
> underline attribute removed. Check drivers/video/fbcon.c and look at the
> function fbcon_setup. Note, the logo space is erased using the scr_memsetw
> function with conp->vc_video_erase_char. Just replace them with
> (conp->vc_video_erase_char & ~0x400) if conp->can_do_color is false. (0x400
> is the underline attribute).
Good idea. Tested, works. Included below.
Thanks.
Petr
Index: drivers/video/fbcon.c
===================================================================
RCS file: /home/linux-m68k/cvsroot/linux/drivers/video/Attic/fbcon.c,v
retrieving revision 1.1.1.2.2.6
diff -u -r1.1.1.2.2.6 fbcon.c
--- drivers/video/fbcon.c 26 Aug 2003 03:13:09 -0000 1.1.1.2.2.6
+++ drivers/video/fbcon.c 12 Aug 2004 11:59:22 -0000
@@ -692,9 +692,13 @@
conp->vc_pos += logo_lines * conp->vc_size_row;
}
}
- scr_memsetw((unsigned short *)conp->vc_origin,
- conp->vc_video_erase_char,
- conp->vc_size_row * logo_lines);
+ {
+ int erase_char = conp->vc_video_erase_char;
+ if (! conp->vc_can_do_color)
+ erase_char &= ~0x400; /* disable underline */
+ scr_memsetw((unsigned short *)conp->vc_origin,
+ erase_char, conp->vc_size_row * logo_lines);
+ }
}
/*
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
next prev parent reply other threads:[~2004-08-12 12:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-11 19:56 patch fixing background next to penguin logo in monochrome Petr Stehlik
2004-08-11 22:23 ` Antonino A. Daplas
2004-08-12 12:02 ` Petr Stehlik [this message]
2004-08-12 20:01 ` Geert Uytterhoeven
2004-08-12 22:30 ` Antonino A. Daplas
2004-08-12 23:53 ` Antonino A. Daplas
2004-08-13 8:05 ` Geert Uytterhoeven
2004-08-15 0:43 ` Antonino A. Daplas
2004-08-15 12:25 ` Geert Uytterhoeven
2004-08-16 3:11 ` Antonino A. Daplas
2004-08-17 7:45 ` Geert Uytterhoeven
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=1092312171.27772.73.camel@joy.sophics \
--to=pstehlik@sophics.cz \
--cc=adaplas@pol.net \
--cc=cts@debian.org \
--cc=geert@linux-m68k.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).