* [PATCH 01/33] fbcon: Fix typo and bogus logic in get_default_font
@ 2007-07-26 11:45 Antonino A. Daplas
2007-07-26 17:29 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Antonino A. Daplas @ 2007-07-26 11:45 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Fbdev development list
Reported in: Bugzilla Bug 8727
Fix typo and bogus logic in get_default_font(). The bug results in
get_default_font() returning a font that may not be displayed properly by a
framebuffer driver.
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---
drivers/video/console/fonts.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/console/fonts.c b/drivers/video/console/fonts.c
index a6828d0..96979c3 100644
--- a/drivers/video/console/fonts.c
+++ b/drivers/video/console/fonts.c
@@ -133,8 +133,8 @@ #endif
if ((yres < 400) == (f->height <= 8))
c += 1000;
- if (!(font_w & (1 << (f->width - 1))) ||
- !(font_w & (1 << (f->height - 1))))
+ if ((font_w & (1 << (f->width - 1))) &&
+ (font_h & (1 << (f->height - 1))))
c += 1000;
if (c > cc) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 01/33] fbcon: Fix typo and bogus logic in get_default_font
2007-07-26 11:45 [PATCH 01/33] fbcon: Fix typo and bogus logic in get_default_font Antonino A. Daplas
@ 2007-07-26 17:29 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2007-07-26 17:29 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: Linux Fbdev development list
It looks like patches 1-6 (at least) are 2.6.23 material, but
I think it'd be better if you were to work out which of these
are for 2.6.23, please?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-26 17:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26 11:45 [PATCH 01/33] fbcon: Fix typo and bogus logic in get_default_font Antonino A. Daplas
2007-07-26 17:29 ` Andrew Morton
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).