Commit 141253b2548a0af64dfd38cd6aa8cd4e80240702
1 parent
646be93b
Bochs VBE emulation fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@775 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
1 deletions
hw/vga.c
... | ... | @@ -598,14 +598,15 @@ static void vbe_ioport_write(void *opaque, uint32_t addr, uint32_t val) |
598 | 598 | } else { |
599 | 599 | shift_control = 2; |
600 | 600 | s->sr[4] |= 0x08; /* set chain 4 mode */ |
601 | + s->sr[2] |= 0x0f; /* activate all planes */ | |
601 | 602 | } |
602 | 603 | s->gr[0x05] = (s->gr[0x05] & ~0x60) | (shift_control << 5); |
603 | 604 | s->cr[0x09] &= ~0x9f; /* no double scan */ |
604 | - s->vbe_regs[s->vbe_index] = val; | |
605 | 605 | } else { |
606 | 606 | /* XXX: the bios should do that */ |
607 | 607 | s->bank_offset = 0; |
608 | 608 | } |
609 | + s->vbe_regs[s->vbe_index] = val; | |
609 | 610 | break; |
610 | 611 | case VBE_DISPI_INDEX_VIRT_WIDTH: |
611 | 612 | { | ... | ... |