From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWSkF-0005Qk-0D for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:20:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWSkA-0005ON-5m for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:20:18 -0400 Received: from [199.232.76.173] (port=34932 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWSk9-0005O4-Il for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:20:13 -0400 Received: from mx2.redhat.com ([66.187.237.31]:41354) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWSk8-0008O2-WE for qemu-devel@nongnu.org; Thu, 30 Jul 2009 06:20:13 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6UAKCYO003335 for ; Thu, 30 Jul 2009 06:20:12 -0400 From: Zachary Amsden Date: Thu, 30 Jul 2009 00:15:12 -1000 Message-Id: <1248948912-7877-15-git-send-email-zamsden@redhat.com> In-Reply-To: <1248948912-7877-14-git-send-email-zamsden@redhat.com> References: <1248948912-7877-1-git-send-email-zamsden@redhat.com> <1248948912-7877-2-git-send-email-zamsden@redhat.com> <1248948912-7877-3-git-send-email-zamsden@redhat.com> <1248948912-7877-4-git-send-email-zamsden@redhat.com> <1248948912-7877-5-git-send-email-zamsden@redhat.com> <1248948912-7877-6-git-send-email-zamsden@redhat.com> <1248948912-7877-7-git-send-email-zamsden@redhat.com> <1248948912-7877-8-git-send-email-zamsden@redhat.com> <1248948912-7877-9-git-send-email-zamsden@redhat.com> <1248948912-7877-10-git-send-email-zamsden@redhat.com> <1248948912-7877-11-git-send-email-zamsden@redhat.com> <1248948912-7877-12-git-send-email-zamsden@redhat.com> <1248948912-7877-13-git-send-email-zamsden@redhat.com> <1248948912-7877-14-git-send-email-zamsden@redhat.com> Subject: [Qemu-devel] [PATCH 14/14] Atrocious and horrendous patch to demonstrate multiple SDL displays. The multiple SDL displays can be seen on one console, using ctrl-alt-1/2 to switch between them. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: zamsden@redhat.com I will not sign off this patch as it should not be committed! This is purely for demonstration. The proper way to do this is a more refined console interface, and a separation of the notion of display creation and 'running' of the display window interface. Written-By: Zachary Amsden --- hw/pc.c | 1 + vl.c | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 86e5cfe..91dff1b 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1018,6 +1018,7 @@ static void pc_init1(ram_addr_t ram_size, if (cirrus_vga_enabled) { if (pci_enabled) { pci_cirrus_vga_init(pci_bus); + pci_cirrus_vga_init(pci_bus); } else { isa_cirrus_vga_init(); } diff --git a/vl.c b/vl.c index f9d2da6..3285eed 100644 --- a/vl.c +++ b/vl.c @@ -6103,6 +6103,7 @@ int main(int argc, char **argv, char **envp) #if defined(CONFIG_SDL) case DT_SDL: sdl_display_init(ds, full_screen, no_frame); + sdl_display_init(ds->next, full_screen, no_frame); break; #elif defined(CONFIG_COCOA) case DT_SDL: @@ -6111,8 +6112,10 @@ int main(int argc, char **argv, char **envp) #endif case DT_VNC: vnc_display_init(ds); + vnc_display_init(ds->next); if (vnc_display_open(ds, vnc_display) < 0) exit(1); + if (vnc_display_open(ds->next, vnc_display) < 0) if (show_vnc_port) { printf("VNC server running on `%s'\n", vnc_display_local_addr(ds)); -- 1.6.2.5