mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
shm-formats: #ifdef on formats added in 1.20
This commit is contained in:
parent
fabffd626b
commit
bfc53d1e71
1 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <wayland-version.h>
|
||||
|
||||
#if defined(_DEBUG)
|
||||
static const struct shm_formats {
|
||||
uint32_t format;
|
||||
|
|
@ -109,9 +111,11 @@ static const struct shm_formats {
|
|||
{WL_SHM_FORMAT_NV15, "NV15"},
|
||||
{WL_SHM_FORMAT_Q410, "Q410"},
|
||||
{WL_SHM_FORMAT_Q401, "Q401"},
|
||||
#if WAYLAND_VERSION_MAJOR > 1 || WAYLAND_VERSION_MINOR >= 20
|
||||
{WL_SHM_FORMAT_XRGB16161616, "XRGB16161616"},
|
||||
{WL_SHM_FORMAT_XBGR16161616, "XBGR16161616"},
|
||||
{WL_SHM_FORMAT_ARGB16161616, "ARGB16161616"},
|
||||
{WL_SHM_FORMAT_ABGR16161616, "ABGR16161616"},
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue