diff options
Diffstat (limited to 'ui/console.c')
-rw-r--r-- | ui/console.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c index 1fd4ea4d2e..bf385790b5 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1292,6 +1292,17 @@ DisplaySurface *qemu_create_displaysurface_from(int width, int height, return surface; } +DisplaySurface *qemu_create_displaysurface_pixman(pixman_image_t *image) +{ + DisplaySurface *surface = g_new0(DisplaySurface, 1); + + trace_displaysurface_create_pixman(surface); + surface->format = pixman_image_get_format(image); + surface->image = pixman_image_ref(image); + + return surface; +} + static void qemu_unmap_displaysurface_guestmem(pixman_image_t *image, void *unused) { |