summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-19 14:09:20 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-19 14:09:20 +0000
commitd86f334c0f401e7948cab0764629d76067eab8f5 (patch)
tree19460787b8ce74ce7a6a0d1c1265d40b60bd7a71 /console.c
parent7680718cd2fea81e1f5de64da14cd4ba56b29290 (diff)
downloadqemu-d86f334c0f401e7948cab0764629d76067eab8f5.tar.gz
qemu-d86f334c0f401e7948cab0764629d76067eab8f5.tar.bz2
qemu-d86f334c0f401e7948cab0764629d76067eab8f5.zip
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 <avi@qumranet.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4903 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'console.c')
-rw-r--r--console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/console.c b/console.c
index bc0c3497f5..1c94980e85 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) {