|
@@ -2575,11 +2575,13 @@ static void vc_chr_open(Chardev *chr,
|
|
|
|
|
|
void qemu_console_resize(QemuConsole *s, int width, int height)
|
|
void qemu_console_resize(QemuConsole *s, int width, int height)
|
|
{
|
|
{
|
|
- DisplaySurface *surface;
|
|
|
|
|
|
+ DisplaySurface *surface = qemu_console_surface(s);
|
|
|
|
|
|
assert(s->console_type == GRAPHIC_CONSOLE);
|
|
assert(s->console_type == GRAPHIC_CONSOLE);
|
|
|
|
|
|
- if (qemu_console_get_width(s, -1) == width &&
|
|
|
|
|
|
+ if ((s->scanout.kind != SCANOUT_SURFACE ||
|
|
|
|
+ (surface && surface->flags & QEMU_ALLOCATED_FLAG)) &&
|
|
|
|
+ qemu_console_get_width(s, -1) == width &&
|
|
qemu_console_get_height(s, -1) == height) {
|
|
qemu_console_get_height(s, -1) == height) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|