Fix background color calculation
Spotted by: ray@
This commit is contained in:
parent
d7631c7111
commit
706f28ae4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245071
@ -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--) {
|
||||
|
@ -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--) {
|
||||
|
Loading…
Reference in New Issue
Block a user