pixel_format: RGBA4444 and RGBA5551 have alpha components

This commit is contained in:
Alexander Orzechowski 2022-09-06 18:48:41 -04:00
parent f8ae564906
commit 9b091f528e

View file

@ -66,7 +66,7 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
.drm_format = DRM_FORMAT_RGBA4444,
.opaque_substitute = DRM_FORMAT_RGBX4444,
.bpp = 16,
.has_alpha = false,
.has_alpha = true,
},
{
.drm_format = DRM_FORMAT_RGBX5551,
@ -78,7 +78,7 @@ static const struct wlr_pixel_format_info pixel_format_info[] = {
.drm_format = DRM_FORMAT_RGBA5551,
.opaque_substitute = DRM_FORMAT_RGBX5551,
.bpp = 16,
.has_alpha = false,
.has_alpha = true,
},
{
.drm_format = DRM_FORMAT_RGB565,