From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjWUj-00068j-Gc for qemu-devel@nongnu.org; Tue, 17 Mar 2009 06:26:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjWUf-00068K-FC for qemu-devel@nongnu.org; Tue, 17 Mar 2009 06:26:01 -0400 Received: from [199.232.76.173] (port=56054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjWUf-00068B-6W for qemu-devel@nongnu.org; Tue, 17 Mar 2009 06:25:57 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:2328) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjWUe-0007NK-S5 for qemu-devel@nongnu.org; Tue, 17 Mar 2009 06:25:56 -0400 Received: from [10.80.225.184] ([10.80.225.184]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id n2HAPqqM025347 for ; Tue, 17 Mar 2009 03:25:53 -0700 Message-ID: <49BF7A2C.7020707@eu.citrix.com> Date: Tue, 17 Mar 2009 10:23:40 +0000 From: Stefano Stabellini MIME-Version: 1.0 Subject: Re: [Qemu-devel] r6349 broke Commander Keen 4 ;-( References: <49BECB48.2040107@bttr-software.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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" malc wrote: > On Mon, 16 Mar 2009, Robert Riebisch wrote: > >> Hi! >> >> When running Commander Keen 4 () >> in DOS only the left half of the VGA screen is shown on the SDL interface. >> >> By doing lots of builds I narrowed the problem down to >> by >> Stefano Stabellini. > > 6349 is indeed what broke stuff, the code was moved (why?) and uses > disp_width that could be modified later.. Good catch! Thanks to Robert Riebisch for the extremely good bug report. The code was moved because the DisplaySurface color depth could change as a consequence of qemu_create_displaysurface_from or qemu_console_resize: rgb_to_pixel depends on the DysplaySurface depth and update_palette[16,256] depends on rgb_to_pixel. Therefore your patch is fine because fixes the problem keeping the benefit of the original patch.