From 3fcdf97c352a7ca31a9cf0ea2bb944a0b6ff5649 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Thu, 10 Jul 2008 16:17:08 +0300 Subject: Force screen resize if a display buffer does not exist Signed-off-by: Avi Kivity --- console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/console.c b/console.c index 061135f42..055a3f12d 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) { -- cgit v1.2.3