Skip to contentSkip to conversation

[4903] Force screen resize if no buffer set (Avi Kivity).

Qemu-devel Andrzej Zaborowski 1 participant 1 message Jul 19, 2008

lore
Share & tools
lore
#0 lore raw

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.

Modified Paths:
--------------
trunk/console.c

Modified: trunk/console.c
===================================================================

console.c +2 -1
@@ -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) {