Received: from eggs.gnu.org ([2001:4830:134:3::10]:34414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEE37-0000fU-9p for qemu-devel@nongnu.org; Tue, 27 Aug 2013 03:50:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEE31-00034t-9U for qemu-devel@nongnu.org; Tue, 27 Aug 2013 03:50:49 -0400 Received: from indium.canonical.com ([91.189.90.7]:44129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEE30-00034m-TF for qemu-devel@nongnu.org; Tue, 27 Aug 2013 03:50:43 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VEE2z-0006te-TX for ; Tue, 27 Aug 2013 07:50:41 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D692C2E808B for ; Tue, 27 Aug 2013 07:50:41 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 27 Aug 2013 07:42:38 -0000 From: Lei Li Sender: bounces@canonical.com References: <20130824172630.17668.57102.malonedeb@gac.canonical.com> Message-Id: <20130827074238.32162.57191.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1216368] Re: unsupported screen resolution crashes sdl-qemu Reply-To: Bug 1216368 <1216368@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Yes, it is a bug. It should go back to the previous setting if the new scre= en resolution falied. I will send a patch later. = Thanks. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1216368 Title: unsupported screen resolution crashes sdl-qemu Status in QEMU: New Bug description: if the (windows) guest sets a screen resolution that the SDL backend does= not support, qemu does an exit(1). with this fix, the the resolution is still wrong (only part of the deskto= p is displayed), but qemu keeps running and the guest can auto-revert the video mode: ui/sdl.c:do_sdl_resize() SDL_Surface * tmp_screen; tmp_screen =3D SDL_SetVideoMode(width, height, bpp, flags); if (!tmp_screen) { // fprintf(stderr, "Could not open SDL display (%dx%dx%d): %s\n", wi= dth, = // height, bpp, SDL_GetError()); // exit(1); } else { real_screen =3D tmp_screen; } To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1216368/+subscriptions