Skip to content

Commit

Permalink
pm2fb: reset transparency settings
Browse files Browse the repository at this point in the history
This patch resets transparency settings when depth changes.  Otherwise the 16
and 24-bit modes work incorrectly after switching from 32-bit mode.

Signed-off-by: Krzysztof Helt < krzysztof.h1@wp.pl>
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
krzysztof.h1@wp.pl authored and Linus Torvalds committed May 8, 2007
1 parent 167f07f commit 76c7d3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/pm2fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ static int pm2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
return -EINVAL;
}

var->transp.offset = 0;
var->transp.length = 0;
switch(var->bits_per_pixel) {
case 8:
var->red.length = var->green.length = var->blue.length = 8;
Expand Down

0 comments on commit 76c7d3f

Please sign in to comment.