[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 13/24] ui/console: when PIXMAN is unavailable, don't draw place
From: |
marcandre . lureau |
Subject: |
[PULL v2 13/24] ui/console: when PIXMAN is unavailable, don't draw placeholder msg |
Date: |
Mon, 6 Nov 2023 13:55:30 +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
- [PULL v2 05/24] vl: drop needless -spice checks, (continued)
- [PULL v2 05/24] vl: drop needless -spice checks, marcandre . lureau, 2023/11/06
- [PULL v2 06/24] qemu-options: define -vnc only #ifdef CONFIG_VNC, marcandre . lureau, 2023/11/06
- [PULL v2 04/24] ui: add pixman-minimal.h, marcandre . lureau, 2023/11/06
- [PULL v2 07/24] vl: simplify display_remote logic, marcandre . lureau, 2023/11/06
- [PULL v2 08/24] vl: move display early init before default devices, marcandre . lureau, 2023/11/06
- [PULL v2 12/24] virtio-gpu: replace PIXMAN for region/rect test, marcandre . lureau, 2023/11/06
- [PULL v2 09/24] ui/console: allow to override the default VC, marcandre . lureau, 2023/11/06
- [PULL v2 10/24] ui/vc: console-vc requires PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 11/24] qmp/hmp: disable screendump if PIXMAN is missing, marcandre . lureau, 2023/11/06
- [PULL v2 14/24] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 13/24] ui/console: when PIXMAN is unavailable, don't draw placeholder msg,
marcandre . lureau <=
- [PULL v2 15/24] ui/gl: opengl doesn't require PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 18/24] ui/gtk: -display gtk requires PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 16/24] ui/vnc: VNC requires PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 19/24] ui/dbus: do not require PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 20/24] arm/kconfig: XLNX_ZYNQMP_ARM depends on PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 17/24] ui/spice: SPICE/QXL requires PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 21/24] hw/sm501: allow compiling without PIXMAN, marcandre . lureau, 2023/11/06
- [PULL v2 23/24] hw/mips: FULOONG depends on VT82C686, marcandre . lureau, 2023/11/06
- [PULL v2 22/24] hw/display: make ATI_VGA depend on PIXMAN, marcandre . lureau, 2023/11/06