From a93a3af9ec44710b2f7de8eb1c36f93ee3ec0d10 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 18 Jun 2014 09:00:00 +0200 Subject: 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 --- include/ui/qemu-pixman.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ui/qemu-pixman.h') diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index ba970f813b..090a3e2e8f 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); -- cgit v1.2.1