]> git.proxmox.com Git - qemu.git/commit
vga: fix text mode updating
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 9 Oct 2012 15:10:13 +0000 (17:10 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Nov 2012 12:10:06 +0000 (13:10 +0100)
commit9678aedd8e76978465698b9edeb069ccee15e975
tree83449a10c100ed71cfe079c031de624884b0d93d
parente250d949feb1334828f27f0d145c35f29c4b7639
vga: fix text mode updating

With both text (curses) and graphics (vnc/sdl/spice/...) display active
vga text mode emulation fails to update both correctly.  Depending on
whenever vga_update_text() or vga_draw_text() happens to be called first
only the text display or only the graphics display will see display
resolution changes and full redraws.

Fix it by calling both text/gfx resize functions in both code paths and
keep track of full screen redraws needed in VGACommonState fields.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/vga.c
hw/vga_int.h