Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94140
b: refs/heads/master
c: 22af89a
h: refs/heads/master
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Apr 28, 2008
1 parent b882dbd commit 3136112
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 2ae09f0da1cd0c8c646edea2e68356e76789461c
refs/heads/master: 22af89aa0c0b4012a7431114a340efd3665a7617
12 changes: 8 additions & 4 deletions trunk/drivers/video/console/fbcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,14 @@ struct fbcon_ops {
#define attr_blink(s) \
((s) & 0x8000)

#define mono_col(info) \
(~(0xfff << (max((info)->var.green.length, \
max((info)->var.red.length, \
(info)->var.blue.length)))) & 0xff)

static inline int mono_col(const struct fb_info *info)
{
__u32 max_len;
max_len = max(info->var.green.length, info->var.red.length);
max_len = max(info->var.blue.length, max_len);
return ~(0xfff << (max_len & 0xff));
}

static inline int attr_col_ec(int shift, struct vc_data *vc,
struct fb_info *info, int is_fg)
Expand Down

0 comments on commit 3136112

Please sign in to comment.