psplash: use correct blue offset value for BGR888
PATCH 1/1 psplash: use correct blue offset value for BGR888
Author: Aws Ismail <[email protected]> Date: Thu Aug 16 11:06:13 2012 -0400
Use correct blue offset value for BGR888
fs->blue_offset should be compared to 16 instead of 8 in order to detect BGR.
Credit goes to Ulrich Feichter <[email protected]> for detecting this.
Signed-off-by Aws Ismail <[email protected]>
--- psplash-fb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
psplash-fb.c +1 -1
@@ -185,7 +185,7 @@ psplash_fb_new (int angle) fb->rgbmode =RGB888 ; }else if (fb->red_offset ==0 && fb->red_length ==8 && fb->green_offset ==8 && fb->green_length ==8 && - fb->blue_offset ==8 && fb->blue_length ==8 ) { + fb->blue_offset ==16 && fb->blue_length ==8 ) { fb->rgbmode =BGR888 ; }else { fb->rgbmode =GENERIC ;