wayland: fix alpha mode mapping for color-representation
Fixes: ed8954e8cf ("wayland: add support for wp-color-representation-v1")
This commit is contained in:
1 parent
8ace278cbe
commit
3945a41872
1 file changed
+1
-3
@@ -2325,9 +2325,7 @@ static void supported_alpha_mode(void *data, struct wp_color_representation_mana
|
||||
struct vo_wayland_state *wl = data;
|
||||
switch (alpha_mode) {
|
||||
case WP_COLOR_REPRESENTATION_SURFACE_V1_ALPHA_MODE_PREMULTIPLIED_ELECTRICAL:
|
||||
#if PL_API_VER >= 344
|
||||
wl->alpha_map[PL_ALPHA_NONE] = alpha_mode;
|
||||
#endif
|
||||
wl->alpha_map[PL_ALPHA_PREMULTIPLIED] = alpha_mode;
|
||||
break;
|
||||
case WP_COLOR_REPRESENTATION_SURFACE_V1_ALPHA_MODE_STRAIGHT:
|
||||
wl->alpha_map[PL_ALPHA_INDEPENDENT] = alpha_mode;
|
||||
|
||||
Reference in new issue
Block a user