From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBLpr-0003sc-De for qemu-devel@nongnu.org; Fri, 01 Mar 2013 04:01:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBLpg-00031J-CG for qemu-devel@nongnu.org; Fri, 01 Mar 2013 04:00:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBLpf-00030m-Q5 for qemu-devel@nongnu.org; Fri, 01 Mar 2013 04:00:48 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2190ksj029451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Mar 2013 04:00:47 -0500 From: Gerd Hoffmann Date: Fri, 1 Mar 2013 10:00:36 +0100 Message-Id: <1362128443-15687-6-git-send-email-kraxel@redhat.com> In-Reply-To: <1362128443-15687-1-git-send-email-kraxel@redhat.com> References: <1362128443-15687-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [RfC PATCH 05/12] qxl: better vga init in enter_vga_mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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 --- hw/qxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/qxl.c b/hw/qxl.c index cc0ba40..8177008 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1073,8 +1073,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_gfx_resize(d->ssd.ds); vga_dirty_log_start(&d->vga); + vga_hw_update(); } static void qxl_exit_vga_mode(PCIQXLDevice *d) -- 1.7.9.7