mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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 <marcandre.lureau@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
a200d53b1f
commit
d7e947965a
1 changed files with 2 additions and 0 deletions
|
@ -584,6 +584,7 @@ DisplaySurface *qemu_create_placeholder_surface(int w, int h,
|
||||||
const char *msg)
|
const char *msg)
|
||||||
{
|
{
|
||||||
DisplaySurface *surface = qemu_create_displaysurface(w, h);
|
DisplaySurface *surface = qemu_create_displaysurface(w, h);
|
||||||
|
#ifdef CONFIG_PIXMAN
|
||||||
pixman_color_t bg = QEMU_PIXMAN_COLOR_BLACK;
|
pixman_color_t bg = QEMU_PIXMAN_COLOR_BLACK;
|
||||||
pixman_color_t fg = QEMU_PIXMAN_COLOR_GRAY;
|
pixman_color_t fg = QEMU_PIXMAN_COLOR_GRAY;
|
||||||
pixman_image_t *glyph;
|
pixman_image_t *glyph;
|
||||||
|
@ -598,6 +599,7 @@ DisplaySurface *qemu_create_placeholder_surface(int w, int h,
|
||||||
x+i, y, FONT_WIDTH, FONT_HEIGHT);
|
x+i, y, FONT_WIDTH, FONT_HEIGHT);
|
||||||
qemu_pixman_image_unref(glyph);
|
qemu_pixman_image_unref(glyph);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
surface->flags |= QEMU_PLACEHOLDER_FLAG;
|
surface->flags |= QEMU_PLACEHOLDER_FLAG;
|
||||||
return surface;
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue