[yocto] [PATCH 2/2] psplash: use correct blue offset value for BGR888

Saul Wold sgw at linux.intel.com
Wed Oct 24 09:29:01 PDT 2012


From: Aws Ismail <aws.ismail at windriver.com>

Author: Aws Ismail <aws.ismail at windriver.com>
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 <u.feichter at avibit.com>
     for detecting this.

     Signed-off-by: Aws Ismail <aws.ismail at windriver.com>

Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
 psplash-fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/psplash-fb.c b/psplash-fb.c
index 72505b0..1db4fde 100644
--- a/psplash-fb.c
+++ b/psplash-fb.c
@@ -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;
-- 
1.7.7.6




More information about the yocto mailing list