mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
ui: compile out some qemu-pixman functions when !PIXMAN
Those functions require the PIXMAN library. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
ce59c54c49
commit
b3ec48cf92
2 changed files with 11 additions and 2 deletions
|
@ -145,6 +145,7 @@ int qemu_pixman_get_type(int rshift, int gshift, int bshift)
|
|||
return type;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PIXMAN
|
||||
pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf)
|
||||
{
|
||||
pixman_format_code_t format;
|
||||
|
@ -158,6 +159,7 @@ pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf)
|
|||
}
|
||||
return format;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Return true for known-good pixman conversions.
|
||||
|
@ -186,6 +188,7 @@ bool qemu_pixman_check_format(DisplayChangeListener *dcl,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PIXMAN
|
||||
pixman_image_t *qemu_pixman_linebuf_create(pixman_format_code_t format,
|
||||
int width)
|
||||
{
|
||||
|
@ -211,6 +214,7 @@ pixman_image_t *qemu_pixman_mirror_create(pixman_format_code_t format,
|
|||
NULL,
|
||||
pixman_image_get_stride(image));
|
||||
}
|
||||
#endif
|
||||
|
||||
void qemu_pixman_image_unref(pixman_image_t *image)
|
||||
{
|
||||
|
@ -220,6 +224,7 @@ void qemu_pixman_image_unref(pixman_image_t *image)
|
|||
pixman_image_unref(image);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PIXMAN
|
||||
pixman_image_t *qemu_pixman_glyph_from_vgafont(int height, const uint8_t *font,
|
||||
unsigned int ch)
|
||||
{
|
||||
|
@ -262,3 +267,4 @@ void qemu_pixman_glyph_render(pixman_image_t *glyph,
|
|||
pixman_image_unref(ifg);
|
||||
pixman_image_unref(ibg);
|
||||
}
|
||||
#endif /* CONFIG_PIXMAN */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue