aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-10-31 18:09:17 -0400
committerSimon Ser <contact@emersion.fr>2020-10-31 23:15:21 +0100
commit0f9b2bfa64359eaeb25b73ccae08c9059bfc02e7 (patch)
treefcf14e50669af228d02070a0ab84bedc79134b0e
parent368d0146fbda4281b67a65fea3e6eb148655ef8f (diff)
render/dmabuf: use bitmask for wlr_dmabuf_attributes_flags
-rw-r--r--include/wlr/render/dmabuf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/render/dmabuf.h b/include/wlr/render/dmabuf.h
index 93e50eb3..b9c54896 100644
--- a/include/wlr/render/dmabuf.h
+++ b/include/wlr/render/dmabuf.h
@@ -15,9 +15,9 @@
#define WLR_DMABUF_MAX_PLANES 4
enum wlr_dmabuf_attributes_flags {
- WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT = 1,
- WLR_DMABUF_ATTRIBUTES_FLAGS_INTERLACED = 2,
- WLR_DMABUF_ATTRIBUTES_FLAGS_BOTTOM_FIRST = 4,
+ WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT = 1 << 0,
+ WLR_DMABUF_ATTRIBUTES_FLAGS_INTERLACED = 1 << 1,
+ WLR_DMABUF_ATTRIBUTES_FLAGS_BOTTOM_FIRST = 1 << 2,
};
struct wlr_dmabuf_attributes {