Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKD7j-0000vz-3N for qemu-devel@nongnu.org; Sat, 19 Jul 2008 10:09:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKD7i-0000uy-Hr for qemu-devel@nongnu.org; Sat, 19 Jul 2008 10:09:22 -0400 Received: from [199.232.76.173] (port=38732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKD7i-0000uq-Db for qemu-devel@nongnu.org; Sat, 19 Jul 2008 10:09:22 -0400 Received: from savannah.gnu.org ([199.232.41.3]:55258 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 1KKD7i-0001rx-OE for qemu-devel@nongnu.org; Sat, 19 Jul 2008 10:09:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KKD7h-0001vy-GB for qemu-devel@nongnu.org; Sat, 19 Jul 2008 14:09:21 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KKD7h-0001vu-9M for qemu-devel@nongnu.org; Sat, 19 Jul 2008 14:09:21 +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, 19 Jul 2008 14:09:21 +0000 Subject: [Qemu-devel] [4903] Force screen resize if no buffer set (Avi Kivity). 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: 4903 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4903 Author: balrog Date: 2008-07-19 14:09:20 +0000 (Sat, 19 Jul 2008) Log Message: ----------- Force screen resize if no buffer set (Avi Kivity). This is a hack to get screen_dump to work, we should start using a global screen_dump method. Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/console.c Modified: trunk/console.c =================================================================== --- trunk/console.c 2008-07-19 13:25:28 UTC (rev 4902) +++ trunk/console.c 2008-07-19 14:09:20 UTC (rev 4903) @@ -1334,7 +1334,8 @@ void qemu_console_resize(QEMUConsole *console, int width, int height) { - if (console->g_width != width || console->g_height != height) { + if (console->g_width != width || console->g_height != height + || !console->ds->data) { console->g_width = width; console->g_height = height; if (active_console == console) {