From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0EA1CE01245 for ; Thu, 16 Aug 2012 08:17:42 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id q7GFHfb2003585 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 16 Aug 2012 08:17:41 -0700 (PDT) Received: from [128.224.147.212] (128.224.147.212) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.2.309.2; Thu, 16 Aug 2012 08:17:41 -0700 Message-ID: <502D0F02.7040902@windriver.com> Date: Thu, 16 Aug 2012 11:17:22 -0400 From: Aws Ismail Organization: Wind River Systems User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: X-Originating-IP: [128.224.147.212] Subject: [PATCH] psplash: use correct blue offset value for BGR888 X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: aws.ismail@windriver.com List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 15:17:42 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Author: Aws Ismail 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 for detecting this. Signed-off-by: Aws Ismail --- psplash-fb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/psplash-fb.c b/psplash-fb.c index 71740cd..f65d67e 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;