aboutsummaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-29 19:21:16 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-29 19:21:16 +0000
commit141253b2548a0af64dfd38cd6aa8cd4e80240702 (patch)
treecc7cd338caabdab6b65c92d2cb41ee7d721d647e /hw/vga.c
parent646be93b4cc87635ffa03e044d1d21f5c80403c1 (diff)
Bochs VBE emulation fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@775 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 5838d3fc00..62c7c404cc 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -598,14 +598,15 @@ static void vbe_ioport_write(void *opaque, uint32_t addr, uint32_t val)
} else {
shift_control = 2;
s->sr[4] |= 0x08; /* set chain 4 mode */
+ s->sr[2] |= 0x0f; /* activate all planes */
}
s->gr[0x05] = (s->gr[0x05] & ~0x60) | (shift_control << 5);
s->cr[0x09] &= ~0x9f; /* no double scan */
- s->vbe_regs[s->vbe_index] = val;
} else {
/* XXX: the bios should do that */
s->bank_offset = 0;
}
+ s->vbe_regs[s->vbe_index] = val;
break;
case VBE_DISPI_INDEX_VIRT_WIDTH:
{