diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-03 18:28:22 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-03 18:28:22 +0100 |
commit | fb7fa435af36197db5493775d01b4339484ae225 (patch) | |
tree | 53730e209810b2b708a38ac642a3283d80c0e285 /gfx.c | |
parent | c2f9a4886c3597a6e15a67323313555bc9752a58 (diff) | |
download | fbida-fb7fa435af36197db5493775d01b4339484ae225.tar.gz |
fmt wireup, framebuffer
Diffstat (limited to 'gfx.c')
-rw-r--r-- | gfx.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,4 @@ +#include <stdlib.h> #include <endian.h> #include <fcntl.h> #include <sys/types.h> @@ -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; +} |