mirror of https://github.com/xemu-project/xemu.git
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 <kraxel@redhat.com>
This commit is contained in:
parent
c6c06853d9
commit
c099e7aa02
2
hw/qxl.c
2
hw/qxl.c
|
@ -1073,8 +1073,8 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)
|
||||||
trace_qxl_enter_vga_mode(d->id);
|
trace_qxl_enter_vga_mode(d->id);
|
||||||
qemu_spice_create_host_primary(&d->ssd);
|
qemu_spice_create_host_primary(&d->ssd);
|
||||||
d->mode = QXL_MODE_VGA;
|
d->mode = QXL_MODE_VGA;
|
||||||
dpy_gfx_resize(d->ssd.ds);
|
|
||||||
vga_dirty_log_start(&d->vga);
|
vga_dirty_log_start(&d->vga);
|
||||||
|
vga_hw_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void qxl_exit_vga_mode(PCIQXLDevice *d)
|
static void qxl_exit_vga_mode(PCIQXLDevice *d)
|
||||||
|
|
Loading…
Reference in New Issue