From patchwork Sat Aug 4 16:19:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 1273761 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9254FDF24C for ; Sat, 4 Aug 2012 16:19:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753333Ab2HDQTV (ORCPT ); Sat, 4 Aug 2012 12:19:21 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:40860 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752211Ab2HDQTV (ORCPT ); Sat, 4 Aug 2012 12:19:21 -0400 Received: by wgbdr13 with SMTP id dr13so1526550wgb.1 for ; Sat, 04 Aug 2012 09:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=OCljR+40MK/IwUf5jX90cVeAiuEI48qUqy2FSOHsyhE=; b=mKiV5OB9ki83sJRcggMwhbiYdUcmtIlN91Unao1PzoSbktOmwc14vaH6I70BgJrQj2 z6fkIrK3RmiShM4votjMsHxmepQxGfDlL3Un9KvhLl6x0qD0rEAUQcisU1AE9IE/6bJc rS9vzM1eUHJDi2yT+85m2pwV/+Bu/tcdVd4TkzS42z6QlT7+YcIr0n6ysSKAi2zi/swJ ORjeRSkn6inkb8jzJ35OqmqpumzA9Xw8tUOQmPhcc/ZfTv9rV1wljTo76FEzE6mIjb56 HS9yNeEgTeZOzp8NElgdY7ekB/HE2OUVnNRPkps2fgObVxMYnuih80lzLZVOHgPTvdsj so4Q== Received: by 10.180.86.106 with SMTP id o10mr5117706wiz.22.1344097159521; Sat, 04 Aug 2012 09:19:19 -0700 (PDT) Received: from localhost.localdomain (ip-88-119-226-136.static.b4net.lt. [88.119.226.136]) by mx.google.com with ESMTPS id dc3sm4225852wib.7.2012.08.04.09.19.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 04 Aug 2012 09:19:18 -0700 (PDT) From: Grazvydas Ignotas To: linux-fbdev@vger.kernel.org Cc: linux-omap@vger.kernel.org, Tomi Valkeinen , Grazvydas Ignotas Subject: [PATCH] OMAPDSS: OMAPFB: fix framebuffer console colors Date: Sat, 4 Aug 2012 19:19:13 +0300 Message-Id: <1344097153-13903-1-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org omapfb does not currently set pseudo palette correctly for color depths above 16bpp, making red text invisible, command like echo -e '\e[0;31mRED' > /dev/tty1 will display nothing on framebuffer console in 24bpp mode. This is because temporary variable is declared incorrectly, fix it. Signed-off-by: Grazvydas Ignotas --- drivers/video/omap2/omapfb/omapfb-main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 70aa47d..f7c1753 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1183,7 +1183,7 @@ static int _setcolreg(struct fb_info *fbi, u_int regno, u_int red, u_int green, break; if (regno < 16) { - u16 pal; + u32 pal; pal = ((red >> (16 - var->red.length)) << var->red.offset) | ((green >> (16 - var->green.length)) <<