dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0110-qxl-better-vga-init-in-enter_vga_mode.patch

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