[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 08/18] ui/console: when PIXMAN is unavailable, don't draw plac
From: |
marcandre . lureau |
Subject: |
[PATCH v2 08/18] ui/console: when PIXMAN is unavailable, don't draw placeholder msg |
Date: |
Mon, 18 Sep 2023 17:51:55 +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>
---
ui/console.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/console.c b/ui/console.c
index 8b5c40ddd7..1c710a6d5e 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
- [PATCH v2 00/18] Make Pixman an optional dependency, marcandre . lureau, 2023/09/18
- [PATCH v2 02/18] ui: compile out some qemu-pixman functions when !PIXMAN, marcandre . lureau, 2023/09/18
- [PATCH v2 01/18] build-sys: add a "pixman" feature, marcandre . lureau, 2023/09/18
- [PATCH v2 03/18] ui: add pixman-compat.h, marcandre . lureau, 2023/09/18
- [PATCH v2 05/18] ui/vc: console-vc requires PIXMAN, marcandre . lureau, 2023/09/18
- [PATCH v2 04/18] ui/console: allow to override the default VC, marcandre . lureau, 2023/09/18
- [PATCH v2 08/18] ui/console: when PIXMAN is unavailable, don't draw placeholder msg,
marcandre . lureau <=
- [PATCH v2 06/18] qmp/hmp: disable screendump if PIXMAN is missing, marcandre . lureau, 2023/09/18
- [PATCH v2 07/18] virtio-gpu: replace PIXMAN for region/rect test, marcandre . lureau, 2023/09/18
- [PATCH v2 09/18] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, marcandre . lureau, 2023/09/18
- [PATCH v2 10/18] ui/gl: opengl doesn't require PIXMAN, marcandre . lureau, 2023/09/18
- [PATCH v2 11/18] ui/vnc: VNC requires PIXMAN, marcandre . lureau, 2023/09/18
- [PATCH v2 12/18] ui/spice: SPICE/QXL requires PIXMAN, marcandre . lureau, 2023/09/18
- [PATCH v2 13/18] ui/gtk: -display gtk requires PIXMAN, marcandre . lureau, 2023/09/18
- [PATCH v2 14/18] ui/dbus: do not require PIXMAN, marcandre . lureau, 2023/09/18