qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/6] kvm: qemu: force screen resize if a display buf


From: Anthony Liguori
Subject: [Qemu-devel] [PATCH 2/6] kvm: qemu: force screen resize if a display buffer does not exist
Date: Thu, 17 Jul 2008 16:19:36 -0500

From: Avi Kivity <address@hidden>

Signed-off-by: Avi Kivity <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/console.c b/console.c
index 061135f..055a3f1 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) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]