From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3Cmj-00069M-VU for qemu-devel@nongnu.org; Thu, 20 Nov 2008 11:53:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3Cmi-000694-7m for qemu-devel@nongnu.org; Thu, 20 Nov 2008 11:53:41 -0500 Received: from [199.232.76.173] (port=47993 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3Cmi-000691-20 for qemu-devel@nongnu.org; Thu, 20 Nov 2008 11:53:40 -0500 Received: from smtp.eu.citrix.com ([62.200.22.115]:5295) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L3Cmh-0002qU-Qo for qemu-devel@nongnu.org; Thu, 20 Nov 2008 11:53:40 -0500 Message-ID: <492596E0.6050900@eu.citrix.com> Date: Thu, 20 Nov 2008 16:57:04 +0000 From: Stefano Stabellini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 0 of 2] [UPDATE] DisplayState interface change Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, this is an update of the "DisplayState interface change" patch. The main change is introducing a DisplaySurface struct and a PixelFormat struct following Anthony's suggestion, they are both inspired by SDL. I must say that now everything looks much better, Anthony was definitely right about the fact that we make too many assumptions based only on depth. Introducing these two structures allowed me also to simplify vnc.c, as you can see in the second patch. I tested this series with i386 emulation, cirrus vga, vmware vga, curses and both sdl and vnc (even at the same time ;). I realize that the first patch is very big, but it is a small as possible while still being able to compile. I suggest you to read it on a per file basis, paying attention to the changes to console.c, console.h, vga.c, vl.c, vnc.c and sdl.c; the rest are just substitutions. Cheers, Stefano