diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-09-03 20:12:44 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-09-03 20:12:44 +0200 |
commit | 353686e636822cd09ebac4c0ac1f491dff03ba0a (patch) | |
tree | 7d4669cafd4d581026605085ccd4f696ec79507b /video/out/vo_wayland.c | |
parent | 13f3b55881f2f97a5ab89eaaf1602c5c9fbaf054 (diff) | |
download | mpv-353686e636822cd09ebac4c0ac1f491dff03ba0a.tar.bz2 mpv-353686e636822cd09ebac4c0ac1f491dff03ba0a.tar.xz |
configure: build with wayland 1.2.0
For the time being there will be a check if someone uses wayland from git,
because I really really like to have the others formats too.
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r-- | video/out/vo_wayland.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c index 04e3078ee8..291180e952 100644 --- a/video/out/vo_wayland.c +++ b/video/out/vo_wayland.c @@ -37,6 +37,7 @@ #include "video/sws_utils.h" #include "wayland_common.h" +#include "wayland-version.h" #define MAX_BUFFERS 2 @@ -57,6 +58,9 @@ struct fmtentry { static const struct fmtentry fmttable[] = { {WL_SHM_FORMAT_ARGB8888, IMGFMT_BGRA}, // 8b 8g 8r 8a {WL_SHM_FORMAT_XRGB8888, IMGFMT_BGR0}, +#if (WAYLAND_VERSION_MAJOR >= 1) \ + && (WAYLAND_VERSION_MINOR >= 2) \ + && (WAYLAND_VERSION_MICRO >= 90) {WL_SHM_FORMAT_RGB332, IMGFMT_BGR8}, // 3b 3g 2r {WL_SHM_FORMAT_BGR233, IMGFMT_RGB8}, // 3r 3g 3b, {WL_SHM_FORMAT_XRGB4444, IMGFMT_BGR12_LE}, // 4b 4g 4r 4a @@ -85,6 +89,7 @@ static const struct fmtentry fmttable[] = { {WL_SHM_FORMAT_ABGR8888, IMGFMT_RGBA}, {WL_SHM_FORMAT_RGBA8888, IMGFMT_ABGR}, {WL_SHM_FORMAT_BGRA8888, IMGFMT_ARGB}, +#endif }; #define MAX_FORMAT_ENTRIES (sizeof(fmttable) / sizeof(fmttable[0])) |