Re: [PATCH] ui/console: Fix console resize with placeholder surface

2024-02-08 Thread Marc-André Lureau
Hi On Wed, Feb 7, 2024 at 10:38 PM Tianlan Zhou wrote: > > In `qemu_console_resize()`, the old surface of the console is keeped if the > new > console size is the same as the old one. If the old surface is a placeholder, > and the new size of console is the same as the placeholder surface (640*4

Re: [PATCH] ui/console: Fix console resize with placeholder surface

2024-02-07 Thread Michael Tokarev
07.02.2024 20:20, Tianlan Zhou : In `qemu_console_resize()`, the old surface of the console is keeped if the new console size is the same as the old one. If the old surface is a placeholder, and the new size of console is the same as the placeholder surface (640*480), the surface won't be replace

[PATCH] ui/console: Fix console resize with placeholder surface

2024-02-07 Thread Tianlan Zhou
In `qemu_console_resize()`, the old surface of the console is keeped if the new console size is the same as the old one. If the old surface is a placeholder, and the new size of console is the same as the placeholder surface (640*480), the surface won't be replace. In this situation, the surface's