summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/vga.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bhyve/vga.c')
-rw-r--r--usr.sbin/bhyve/vga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/vga.c b/usr.sbin/bhyve/vga.c
index 57dc26e..1d5adb7 100644
--- a/usr.sbin/bhyve/vga.c
+++ b/usr.sbin/bhyve/vga.c
@@ -1069,7 +1069,7 @@ vga_port_out_handler(struct vmctx *ctx, int in, int port, int bytes,
sc->vga_atc.atc_color_select_45 =
(val & ATC_CS_C45) << 4;
sc->vga_atc.atc_color_select_67 =
- (val & ATC_CS_C67) << 6;
+ ((val & ATC_CS_C67) >> 2) << 6;
break;
default:
//printf("XXX VGA ATC: outb 0x%04x, 0x%02x at index %d\n", port, val, sc->vga_atc.atc_index);
OpenPOWER on IntegriCloud