summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2013-01-05 21:05:16 +0000
committergonzo <gonzo@FreeBSD.org>2013-01-05 21:05:16 +0000
commit75ba745d803da6ff1ba15732a854615838be3d0a (patch)
tree91139c614d1a8e6d7ee0fad70411903310ba110a /sys/arm
parent9b6c7883bd42f3a888318b9d300a6d0f648eccac (diff)
downloadFreeBSD-src-75ba745d803da6ff1ba15732a854615838be3d0a.zip
FreeBSD-src-75ba745d803da6ff1ba15732a854615838be3d0a.tar.gz
Fix background color calculation
Spotted by: ray@
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/broadcom/bcm2835/bcm2835_fb.c2
-rw-r--r--sys/arm/versatile/versatile_clcd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_fb.c b/sys/arm/broadcom/bcm2835/bcm2835_fb.c
index e8b2534..35343c8 100644
--- a/sys/arm/broadcom/bcm2835/bcm2835_fb.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_fb.c
@@ -891,7 +891,7 @@ bcmfb_putc(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a)
+ (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--) {
diff --git a/sys/arm/versatile/versatile_clcd.c b/sys/arm/versatile/versatile_clcd.c
index 53226ff..34d29fa 100644
--- a/sys/arm/versatile/versatile_clcd.c
+++ b/sys/arm/versatile/versatile_clcd.c
@@ -892,7 +892,7 @@ versatilefb_putc(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a)
+ (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--) {
OpenPOWER on IntegriCloud