Skip to content

Commit

Permalink
neofb: fill transp->msb_right with the correct value
Browse files Browse the repository at this point in the history
Fill transp->msb_right with the correct value.  fbcon ignores this, but user
apps may not.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent c427063 commit 41988d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/neofb.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ neofb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
var->red.msb_right = 0;
var->green.msb_right = 0;
var->blue.msb_right = 0;
var->transp.msb_right = 0;

switch (var->bits_per_pixel) {
case 8: /* PSEUDOCOLOUR, 256 */
Expand Down

0 comments on commit 41988d6

Please sign in to comment.