From 2f1c6ad70e01856863f7a69182237bf06e41bb71 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 28 Feb 2013 11:08:50 +0100 Subject: [PATCH] qxl: better vga init in enter_vga_mode Ask the vga core to update the display. Will trigger dpy_gfx_resize if needed. More complete than just calling dpy_gfx_resize. Signed-off-by: Gerd Hoffmann (cherry picked from commit c099e7aa0295678859d58e9e60b7619f6ae3bac8) Conflicts: hw/qxl.c --- hw/qxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/qxl.c b/hw/qxl.c index 9418ecb..8374771 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1084,8 +1084,8 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d) trace_qxl_enter_vga_mode(d->id); qemu_spice_create_host_primary(&d->ssd); d->mode = QXL_MODE_VGA; - dpy_resize(d->ssd.ds); vga_dirty_log_start(&d->vga); + vga_hw_update(); } static void qxl_exit_vga_mode(PCIQXLDevice *d)