From fb7fa435af36197db5493775d01b4339484ae225 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Sun, 3 Feb 2019 18:28:22 +0100 Subject: fmt wireup, framebuffer --- gfx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gfx.c') diff --git a/gfx.c b/gfx.c index dee4eae..81e4396 100644 --- a/gfx.c +++ b/gfx.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -49,3 +50,15 @@ gfxfmt fmt_list[] = { }; uint32_t fmt_count = ARRAY_SIZE(fmt_list); + +gfxfmt *gfx_fmt_find_pixman(pixman_format_code_t pixman) +{ + int i; + + for (i = 0; i < fmt_count; i++) { + if (pixman != fmt_list[i].pixman) + continue; + return fmt_list + i; + } + return NULL; +} -- cgit