From: balrog Date: Sat, 19 Jul 2008 14:09:20 +0000 (+0000) Subject: Force screen resize if no buffer set (Avi Kivity). X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~14383 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bba22de7cb9631452dad492c907affce6a69a3b;p=sdk%2Femulator%2Fqemu.git 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 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4903 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/console.c b/console.c index bc0c349..1c94980 100644 --- a/console.c +++ b/console.c @@ -1334,7 +1334,8 @@ CharDriverState *text_console_init(DisplayState *ds, const char *p) 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) {