From: Marc-André Lureau Date: Wed, 30 Aug 2023 09:38:31 +0000 (+0400) Subject: ui/console: when PIXMAN is unavailable, don't draw placeholder msg X-Git-Tag: v8.2.0-rc0~20^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7e947965a064d762ece7873c1e695f399f76bd3;p=thirdparty%2Fqemu.git ui/console: when PIXMAN is unavailable, don't draw placeholder msg When we can't draw text, simply show a blank display. Signed-off-by: Marc-André Lureau Reviewed-by: Thomas Huth --- diff --git a/ui/console.c b/ui/console.c index a72c495b5aa..8e688d35695 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; }