mirror of https://github.com/xemu-project/xemu.git
ui/console: minor stylistic changes
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230830093843.3531473-42-marcandre.lureau@redhat.com>
This commit is contained in:
parent
9cb737b77d
commit
893fe23e7d
|
@ -427,9 +427,7 @@ static void text_console_resize(QemuTextConsole *t)
|
|||
t->width = w;
|
||||
t->height = h;
|
||||
|
||||
w1 = last_width;
|
||||
if (t->width < w1)
|
||||
w1 = t->width;
|
||||
w1 = MIN(t->width, last_width);
|
||||
|
||||
cells = g_new(TextCell, t->width * t->total_height + 1);
|
||||
for (y = 0; y < t->total_height; y++) {
|
||||
|
|
Loading…
Reference in New Issue