[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 13/23] ui/console: when PIXMAN is unavailable, don't draw plac
From: |
marcandre . lureau |
Subject: |
[PATCH v6 13/23] ui/console: when PIXMAN is unavailable, don't draw placeholder msg |
Date: |
Wed, 25 Oct 2023 23:08:07 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
When we can't draw text, simply show a blank display.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
ui/console.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/console.c b/ui/console.c
index a72c495b5a..8e688d3569 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -584,6 +584,7 @@ DisplaySurface *qemu_create_placeholder_surface(int w, int
h,
const char *msg)
{
DisplaySurface *surface = qemu_create_displaysurface(w, h);
+#ifdef CONFIG_PIXMAN
pixman_color_t bg = QEMU_PIXMAN_COLOR_BLACK;
pixman_color_t fg = QEMU_PIXMAN_COLOR_GRAY;
pixman_image_t *glyph;
@@ -598,6 +599,7 @@ DisplaySurface *qemu_create_placeholder_surface(int w, int
h,
x+i, y, FONT_WIDTH, FONT_HEIGHT);
qemu_pixman_image_unref(glyph);
}
+#endif
surface->flags |= QEMU_PLACEHOLDER_FLAG;
return surface;
}
--
2.41.0
- Re: [PATCH v6 14/23] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, (continued)
[PATCH v6 13/23] ui/console: when PIXMAN is unavailable, don't draw placeholder msg,
marcandre . lureau <=
[PATCH v6 16/23] ui/vnc: VNC requires PIXMAN, marcandre . lureau, 2023/10/25
[PATCH v6 17/23] ui/spice: SPICE/QXL requires PIXMAN, marcandre . lureau, 2023/10/25
[PATCH v6 18/23] ui/gtk: -display gtk requires PIXMAN, marcandre . lureau, 2023/10/25
[PATCH v6 19/23] ui/dbus: do not require PIXMAN, marcandre . lureau, 2023/10/25
[PATCH v6 21/23] hw/sm501: allow compiling without PIXMAN, marcandre . lureau, 2023/10/25
[PATCH v6 20/23] arm/kconfig: XLNX_ZYNQMP_ARM depends on PIXMAN, marcandre . lureau, 2023/10/25
[PATCH v6 22/23] hw/display: make ATI_VGA depend on PIXMAN, marcandre . lureau, 2023/10/25