mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-01 16:55:59 +01:00
render/dmabuf: use bitmask for wlr_dmabuf_attributes_flags
This commit is contained in:
parent
368d0146fb
commit
0f9b2bfa64
1 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,9 @@
|
||||||
#define WLR_DMABUF_MAX_PLANES 4
|
#define WLR_DMABUF_MAX_PLANES 4
|
||||||
|
|
||||||
enum wlr_dmabuf_attributes_flags {
|
enum wlr_dmabuf_attributes_flags {
|
||||||
WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT = 1,
|
WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT = 1 << 0,
|
||||||
WLR_DMABUF_ATTRIBUTES_FLAGS_INTERLACED = 2,
|
WLR_DMABUF_ATTRIBUTES_FLAGS_INTERLACED = 1 << 1,
|
||||||
WLR_DMABUF_ATTRIBUTES_FLAGS_BOTTOM_FIRST = 4,
|
WLR_DMABUF_ATTRIBUTES_FLAGS_BOTTOM_FIRST = 1 << 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wlr_dmabuf_attributes {
|
struct wlr_dmabuf_attributes {
|
||||||
|
|
Loading…
Reference in a new issue