Commit 3bba22de7cb9631452dad492c907affce6a69a3b
1 parent
db166940
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
Showing
1 changed file
with
2 additions
and
1 deletions
console.c
| @@ -1334,7 +1334,8 @@ CharDriverState *text_console_init(DisplayState *ds, const char *p) | @@ -1334,7 +1334,8 @@ CharDriverState *text_console_init(DisplayState *ds, const char *p) | ||
| 1334 | 1334 | ||
| 1335 | void qemu_console_resize(QEMUConsole *console, int width, int height) | 1335 | void qemu_console_resize(QEMUConsole *console, int width, int height) |
| 1336 | { | 1336 | { |
| 1337 | - if (console->g_width != width || console->g_height != height) { | 1337 | + if (console->g_width != width || console->g_height != height |
| 1338 | + || !console->ds->data) { | ||
| 1338 | console->g_width = width; | 1339 | console->g_width = width; |
| 1339 | console->g_height = height; | 1340 | console->g_height = height; |
| 1340 | if (active_console == console) { | 1341 | if (active_console == console) { |