[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 75/76] ui+display: rename is_placeholder() -> surface_is_placehold
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 75/76] ui+display: rename is_placeholder() -> surface_is_placeholder() |
Date: |
Tue, 18 Jun 2024 18:00:37 +0200 |
From: Gerd Hoffmann <kraxel@redhat.com>
No functional change.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240605131444.797896-3-kraxel@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/ui/surface.h | 2 +-
ui/console.c | 2 +-
ui/sdl2-2d.c | 2 +-
ui/sdl2-gl.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/ui/surface.h b/include/ui/surface.h
index 4244e0ca4a..273bb4769a 100644
--- a/include/ui/surface.h
+++ b/include/ui/surface.h
@@ -50,7 +50,7 @@ static inline int is_buffer_shared(DisplaySurface *surface)
return !(surface->flags & QEMU_ALLOCATED_FLAG);
}
-static inline int is_placeholder(DisplaySurface *surface)
+static inline int surface_is_placeholder(DisplaySurface *surface)
{
return surface->flags & QEMU_PLACEHOLDER_FLAG;
}
diff --git a/ui/console.c b/ui/console.c
index 1b2cd0c736..c2173fc0b1 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1510,7 +1510,7 @@ 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) && !is_placeholder(surface)))
&&
+ (surface && !is_buffer_shared(surface) &&
!surface_is_placeholder(surface))) &&
qemu_console_get_width(s, -1) == width &&
qemu_console_get_height(s, -1) == height) {
return;
diff --git a/ui/sdl2-2d.c b/ui/sdl2-2d.c
index 06468cd493..73052383c2 100644
--- a/ui/sdl2-2d.c
+++ b/ui/sdl2-2d.c
@@ -72,7 +72,7 @@ void sdl2_2d_switch(DisplayChangeListener *dcl,
scon->texture = NULL;
}
- if (is_placeholder(new_surface) && qemu_console_get_index(dcl->con)) {
+ if (surface_is_placeholder(new_surface) &&
qemu_console_get_index(dcl->con)) {
sdl2_window_destroy(scon);
return;
}
diff --git a/ui/sdl2-gl.c b/ui/sdl2-gl.c
index 28d796607c..91b7ee2419 100644
--- a/ui/sdl2-gl.c
+++ b/ui/sdl2-gl.c
@@ -89,7 +89,7 @@ void sdl2_gl_switch(DisplayChangeListener *dcl,
scon->surface = new_surface;
- if (is_placeholder(new_surface) && qemu_console_get_index(dcl->con)) {
+ if (surface_is_placeholder(new_surface) &&
qemu_console_get_index(dcl->con)) {
qemu_gl_fini_shader(scon->gls);
scon->gls = NULL;
sdl2_window_destroy(scon);
--
2.41.0
- [PULL 66/76] hw/s390x: Introduce s390_skeys_get|set() helpers, (continued)
- [PULL 66/76] hw/s390x: Introduce s390_skeys_get|set() helpers, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 65/76] hw/mips/loongson3_virt: Wire up loongson_ipi device, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 67/76] target/s390x: Use s390_skeys_get|set() helper, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 68/76] util/readline: Fix lints for readline_handle_byte, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 69/76] util/readline: Add C-n, C-p shortcuts, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 70/76] util/readline: Add C-u shortcut, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 71/76] MAINTAINERS: drop virtio-gpu maintainership, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 72/76] MAINTAINERS: drop spice+ui maintainership, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 73/76] ui/cocoa: Use qemu_add_mouse_change_notifier, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 74/76] stdvga: fix screen blanking, Philippe Mathieu-Daudé, 2024/06/18
- [PULL 75/76] ui+display: rename is_placeholder() -> surface_is_placeholder(),
Philippe Mathieu-Daudé <=
- [PULL 76/76] ui+display: rename is_buffer_shared() -> surface_is_allocated(), Philippe Mathieu-Daudé, 2024/06/18
- Re: [PULL 00/76] Misc patches for 2024-06-18, Richard Henderson, 2024/06/18