aboutsummaryrefslogtreecommitdiff
path: root/render/pixel_format.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-09-06 18:48:41 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-09-06 18:48:41 -0400
commit9b091f528e5d9373b725fae1f84ef6c4127e1e9b (patch)
tree56d4b803b47bcab85f87503873955b1d18240e29 /render/pixel_format.c
parentf8ae56490664e716ea1ad701172c7aaa39e9a5ab (diff)
pixel_format: RGBA4444 and RGBA5551 have alpha components
Diffstat (limited to 'render/pixel_format.c')
-rw-r--r--render/pixel_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/pixel_format.c b/render/pixel_format.c
index e6417fd7..586d2a09 100644
--- a/render/pixel_format.c
+++ b/render/pixel_format.c
@@ -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,