From: Gerd Hoffmann Date: Tue, 26 Apr 2016 13:39:22 +0000 (+0200) Subject: vga: update vga register setup on vbe changes X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d90058ab87c36a84c56b2db585de6bdbd1873c9e;p=qemu-upstream-4.6-testing.git vga: update vga register setup on vbe changes Call the new vbe_update_vgaregs() function on vbe configuration changes, to make sure vga registers are up-to-date. upstream-commit-id: 2068192dcccd8a80dddfcc8df6164cf9c26e0fc4 Signed-off-by: Gerd Hoffmann Signed-off-by: Stefano Stabellini --- diff --git a/hw/display/vga.c b/hw/display/vga.c index fb822f425..3739758db 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -762,6 +762,7 @@ void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val) case VBE_DISPI_INDEX_Y_OFFSET: s->vbe_regs[s->vbe_index] = val; vbe_fixup_regs(s); + vbe_update_vgaregs(s); break; case VBE_DISPI_INDEX_BANK: val &= s->vbe_bank_mask;