summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-06-18 09:00:00 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-09-05 13:27:11 +0200
commita93a3af9ec44710b2f7de8eb1c36f93ee3ec0d10 (patch)
tree62ede671edfca6054d21d4a0f97a45ab5e9b52d8 /include/ui
parentfd884c07658d02a96a882b8457d6d7a5cd71a407 (diff)
downloadhqemu-a93a3af9ec44710b2f7de8eb1c36f93ee3ec0d10.zip
hqemu-a93a3af9ec44710b2f7de8eb1c36f93ee3ec0d10.tar.gz
console: add qemu_pixelformat_from_pixman
Function to convert pixman format codes to qemu PixelFormat. [ Benjamin Herrenschmidt: fix BGRA+RGBA shifts ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/qemu-pixman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h
index ba970f8..090a3e2 100644
--- a/include/ui/qemu-pixman.h
+++ b/include/ui/qemu-pixman.h
@@ -33,6 +33,7 @@
/* -------------------------------------------------------------------- */
+PixelFormat qemu_pixelformat_from_pixman(pixman_format_code_t format);
int qemu_pixman_get_type(int rshift, int gshift, int bshift);
pixman_format_code_t qemu_pixman_get_format(PixelFormat *pf);
OpenPOWER on IntegriCloud