diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2024-06-05 15:14:43 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-19 12:42:03 +0200 |
| commit | abd749b517827b3da38230f50a82a94fccfaddac (patch) | |
| tree | 963712e195e1d932a6f7bc4415ae90675d735982 /ui/console.c | |
| parent | 9badf12ac20df80542f642d3dab7b2f1a95b20f5 (diff) | |
| download | focaccia-qemu-abd749b517827b3da38230f50a82a94fccfaddac.tar.gz focaccia-qemu-abd749b517827b3da38230f50a82a94fccfaddac.zip | |
ui+display: rename is_buffer_shared() -> surface_is_allocated()
Boolean return value is reversed, to align with QEMU_ALLOCATED_FLAG, so all callers must be adapted. Also rename share_surface variable in vga_draw_graphic() to reduce confusion. No functional change. Suggested-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Paul Durrant <paul@xen.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20240605131444.797896-4-kraxel@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'ui/console.c')
| -rw-r--r-- | ui/console.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c index c2173fc0b1..e67c5dae2b 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1510,7 +1510,8 @@ void qemu_console_resize(QemuConsole *s, int width, int height) assert(QEMU_IS_GRAPHIC_CONSOLE(s)); if ((s->scanout.kind != SCANOUT_SURFACE || - (surface && !is_buffer_shared(surface) && !surface_is_placeholder(surface))) && + (surface && surface_is_allocated(surface) && + !surface_is_placeholder(surface))) && qemu_console_get_width(s, -1) == width && qemu_console_get_height(s, -1) == height) { return; |