summary refs log tree commit diff stats
path: root/qemu-pixman.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-11-14 08:49:54 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-11-14 08:49:54 -0600
commitbf0dfb69f860a7894958068fba45f5268dddd6be (patch)
tree86619beaf800fdc5edd2a56193e0417d53957a0c /qemu-pixman.c
parentf5022a135e4309a54d433c69b2a056756b2d0d6b (diff)
parentbdd4df332a1bdb20b7fa39ea741f7830e41e1187 (diff)
downloadfocaccia-qemu-bf0dfb69f860a7894958068fba45f5268dddd6be.tar.gz
focaccia-qemu-bf0dfb69f860a7894958068fba45f5268dddd6be.zip
Merge remote-tracking branch 'spice/spice.v63' into staging
* spice/spice.v63:
  spice: fix initialization order
  pflib: unused, remove it.
  spice: switch to pixman
  qxl: call dpy_gfx_resize when entering vga mode
  qxl: fix cursor reset
  hw/qxl: qxl_send_events: nop if stopped
  hw/qxl: guest bug on primary create with stride %4 != 0

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-pixman.c')
-rw-r--r--qemu-pixman.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu-pixman.c b/qemu-pixman.c
index 7547ed74c1..71a9ea43a6 100644
--- a/qemu-pixman.c
+++ b/qemu-pixman.c
@@ -51,6 +51,19 @@ void qemu_pixman_linebuf_fill(pixman_image_t *linebuf, pixman_image_t *fb,
                            0, y, 0, 0, 0, 0, width, 1);
 }
 
+pixman_image_t *qemu_pixman_mirror_create(pixman_format_code_t format,
+                                          pixman_image_t *image)
+{
+    pixman_image_t *mirror;
+
+    mirror = pixman_image_create_bits(format,
+                                      pixman_image_get_width(image),
+                                      pixman_image_get_height(image),
+                                      NULL,
+                                      pixman_image_get_stride(image));
+    return mirror;
+}
+
 void qemu_pixman_image_unref(pixman_image_t *image)
 {
     if (image == NULL) {