summaryrefslogtreecommitdiff
path: root/drmhwcomposer.h
diff options
context:
space:
mode:
authorStefan Schake <stschake@gmail.com>2018-05-04 18:03:00 +0200
committerStefan Schake <stschake@gmail.com>2018-05-04 18:12:35 +0200
commit025d0a65c48f17ea3ffb80fbcfe31ae9e8056556 (patch)
treeade4d05fc864b2ef9846fbd2e0c5da0897a41746 /drmhwcomposer.h
parentd2ad301ea1a0bd356865026b4f37f4c86b75616a (diff)
drm_hwcomposer: Use 16 bit value for plane alpha
The upstream version of the alpha property uses 16 bits to make it future proof. Since HWC2 already passes in a float expand our internal representation instead of just shifting for DRM. Signed-off-by: Stefan Schake <stschake@gmail.com>
Diffstat (limited to 'drmhwcomposer.h')
-rw-r--r--drmhwcomposer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drmhwcomposer.h b/drmhwcomposer.h
index ff8c642..cd631b2 100644
--- a/drmhwcomposer.h
+++ b/drmhwcomposer.h
@@ -141,7 +141,7 @@ struct DrmHwcLayer {
DrmHwcNativeHandle handle;
uint32_t transform;
DrmHwcBlending blending = DrmHwcBlending::kNone;
- uint8_t alpha = 0xff;
+ uint16_t alpha = 0xffff;
DrmHwcRect<float> source_crop;
DrmHwcRect<int> display_frame;