Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkpiB-0002Vw-Iy for qemu-devel@nongnu.org; Fri, 20 Mar 2009 21:09:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkpiA-0002VC-HQ for qemu-devel@nongnu.org; Fri, 20 Mar 2009 21:09:18 -0400 Received: from [199.232.76.173] (port=51496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkpiA-0002V6-CF for qemu-devel@nongnu.org; Fri, 20 Mar 2009 21:09:18 -0400 Received: from savannah.gnu.org ([199.232.41.3]:38131 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lkpi9-0001a2-Lg for qemu-devel@nongnu.org; Fri, 20 Mar 2009 21:09:17 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lkpi9-0005o4-4I for qemu-devel@nongnu.org; Sat, 21 Mar 2009 01:09:17 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lkpi8-0005nz-Q8 for qemu-devel@nongnu.org; Sat, 21 Mar 2009 01:09:16 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Sat, 21 Mar 2009 01:09:16 +0000 Subject: [Qemu-devel] [6875] Fix absolute mouse events generated by SDL frontend. 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 Revision: 6875 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6875 Author: balrog Date: 2009-03-21 01:09:16 +0000 (Sat, 21 Mar 2009) Log Message: ----------- Fix absolute mouse events generated by SDL frontend. In r6839 ("DisplayAllocator interface") the "width" and "height" globals stopped ever being assigned. Note that last time absolute input stopped working was for the same reason. Modified Paths: -------------- trunk/sdl.c Modified: trunk/sdl.c =================================================================== --- trunk/sdl.c 2009-03-20 18:26:16 UTC (rev 6874) +++ trunk/sdl.c 2009-03-21 01:09:16 UTC (rev 6875) @@ -86,7 +86,7 @@ ds->surface->pf.bmask, ds->surface->pf.amask); } -static void do_sdl_resize(int width, int height, int bpp) +static void do_sdl_resize(int new_width, int new_height, int bpp) { int flags; @@ -98,6 +98,8 @@ if (gui_noframe) flags |= SDL_NOFRAME; + width = new_width; + height = new_height; real_screen = SDL_SetVideoMode(width, height, bpp, flags); if (!real_screen) { fprintf(stderr, "Could not open SDL display\n");