mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-29 21:12:07 -06:00
ui+display: rename is_placeholder() -> surface_is_placeholder()
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>
This commit is contained in:
parent
b1cf266c82
commit
9badf12ac2
4 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ static inline int is_buffer_shared(DisplaySurface *surface)
|
||||||
return !(surface->flags & QEMU_ALLOCATED_FLAG);
|
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;
|
return surface->flags & QEMU_PLACEHOLDER_FLAG;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1510,7 +1510,7 @@ void qemu_console_resize(QemuConsole *s, int width, int height)
|
||||||
assert(QEMU_IS_GRAPHIC_CONSOLE(s));
|
assert(QEMU_IS_GRAPHIC_CONSOLE(s));
|
||||||
|
|
||||||
if ((s->scanout.kind != SCANOUT_SURFACE ||
|
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_width(s, -1) == width &&
|
||||||
qemu_console_get_height(s, -1) == height) {
|
qemu_console_get_height(s, -1) == height) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -72,7 +72,7 @@ void sdl2_2d_switch(DisplayChangeListener *dcl,
|
||||||
scon->texture = NULL;
|
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);
|
sdl2_window_destroy(scon);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ void sdl2_gl_switch(DisplayChangeListener *dcl,
|
||||||
|
|
||||||
scon->surface = new_surface;
|
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);
|
qemu_gl_fini_shader(scon->gls);
|
||||||
scon->gls = NULL;
|
scon->gls = NULL;
|
||||||
sdl2_window_destroy(scon);
|
sdl2_window_destroy(scon);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue