Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54961
b: refs/heads/master
c: 167f07f
h: refs/heads/master
i:
  54959: 31da0de
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent 9fe899e commit 75f71e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1e7223f28b4ed5073d2029a3597bf514ff514f2
refs/heads/master: 167f07f1bc20ea1ab51d833deb0c18f5ab93618f
17 changes: 8 additions & 9 deletions trunk/drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -3048,14 +3048,14 @@ static void fbcon_get_requirement(struct fb_info *info,
{
struct vc_data *vc;
struct display *p;
int charcnt;

if (caps->flags) {
int i;
int i, charcnt;

for (i = first_fb_vc; i <= last_fb_vc; i++) {
vc = vc_cons[i].d;
if (vc && vc->vc_mode == KD_TEXT) {
if (vc && vc->vc_mode == KD_TEXT &&
info->node == con2fb_map[i]) {
p = &fb_display[i];
caps->x |= 1 << (vc->vc_font.width - 1);
caps->y |= 1 << (vc->vc_font.height - 1);
Expand All @@ -3068,14 +3068,13 @@ static void fbcon_get_requirement(struct fb_info *info,
} else {
vc = vc_cons[fg_console].d;

if (vc && vc->vc_mode == KD_TEXT) {
if (vc && vc->vc_mode == KD_TEXT &&
info->node == con2fb_map[fg_console]) {
p = &fb_display[fg_console];
caps->x |= 1 << (vc->vc_font.width - 1);
caps->y |= 1 << (vc->vc_font.height - 1);
charcnt = (p->userfont) ?
caps->x = 1 << (vc->vc_font.width - 1);
caps->y = 1 << (vc->vc_font.height - 1);
caps->len = (p->userfont) ?
FNTCHARCNT(p->fontdata) : 256;
if (caps->len < charcnt)
caps->len = charcnt;
}
}
}
Expand Down

0 comments on commit 75f71e9

Please sign in to comment.