mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
sisfb: fix color component length for pseudocolor modes
sisfb incorrectly sets the length of the color fields to 6 bits for PSEUDOCOLOR modes, even though 8 bits are always used per pixel. Fix this by setting the length to 8. Signed-off-by: Michal Januszewski <[email protected]> Cc: Thomas Winischhofer <[email protected]> Acked-by: Krzysztof Helt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0a45348014
commit
811a201374
1 changed files with 1 additions and 1 deletions
|
|
@ -1129,7 +1129,7 @@ sisfb_bpp_to_var(struct sis_video_info *ivideo, struct fb_var_screeninfo *var)
|
|||
switch(var->bits_per_pixel) {
|
||||
case 8:
|
||||
var->red.offset = var->green.offset = var->blue.offset = 0;
|
||||
var->red.length = var->green.length = var->blue.length = 6;
|
||||
var->red.length = var->green.length = var->blue.length = 8;
|
||||
break;
|
||||
case 16:
|
||||
var->red.offset = 11;
|
||||
|
|
|
|||
Loading…
Reference in a new issue