Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2013 21:05:16 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245071 - in head/sys/arm: broadcom/bcm2835 versatile
Message-ID:  <201301052105.r05L5GQU062562@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Sat Jan  5 21:05:16 2013
New Revision: 245071
URL: http://svnweb.freebsd.org/changeset/base/245071

Log:
  Fix background color calculation
  
  Spotted by: ray@

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_fb.c
  head/sys/arm/versatile/versatile_clcd.c

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_fb.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_fb.c	Sat Jan  5 20:37:40 2013	(r245070)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_fb.c	Sat Jan  5 21:05:16 2013	(r245071)
@@ -891,7 +891,7 @@ bcmfb_putc(video_adapter_t *adp, vm_offs
 	    + (sc->depth/8) * (col + sc->xmargin);
 
 	fg = a & 0xf ;
-	bg = (a >> 8) & 0xf;
+	bg = (a >> 4) & 0xf;
 
 	for (i = 0; i < BCMFB_FONT_HEIGHT; i++) {
 		for (j = 0, k = 7; j < 8; j++, k--) {

Modified: head/sys/arm/versatile/versatile_clcd.c
==============================================================================
--- head/sys/arm/versatile/versatile_clcd.c	Sat Jan  5 20:37:40 2013	(r245070)
+++ head/sys/arm/versatile/versatile_clcd.c	Sat Jan  5 21:05:16 2013	(r245071)
@@ -892,7 +892,7 @@ versatilefb_putc(video_adapter_t *adp, v
 	    + (sc->depth/8) * (col + sc->xmargin);
 
 	fg = a & 0xf ;
-	bg = (a >> 8) & 0xf;
+	bg = (a >> 4) & 0xf;
 
 	for (i = 0; i < VERSATILE_FONT_HEIGHT; i++) {
 		for (j = 0, k = 7; j < 8; j++, k--) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301052105.r05L5GQU062562>