mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-04 01:41:18 -05:00
add 10bit color to strip_alpha_channel()
This commit is contained in:
parent
128eb56dc4
commit
52298c8a3c
1 changed files with 2 additions and 0 deletions
|
|
@ -381,6 +381,8 @@ static uint32_t strip_alpha_channel(uint32_t format) {
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case DRM_FORMAT_ARGB8888:
|
case DRM_FORMAT_ARGB8888:
|
||||||
return DRM_FORMAT_XRGB8888;
|
return DRM_FORMAT_XRGB8888;
|
||||||
|
case DRM_FORMAT_ARGB2101010:
|
||||||
|
return DRM_FORMAT_XRGB2101010;
|
||||||
default:
|
default:
|
||||||
return DRM_FORMAT_INVALID;
|
return DRM_FORMAT_INVALID;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue