diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-09-06 18:48:41 -0400 |
---|---|---|
committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-09-06 18:48:41 -0400 |
commit | 9b091f528e5d9373b725fae1f84ef6c4127e1e9b (patch) | |
tree | 56d4b803b47bcab85f87503873955b1d18240e29 /render | |
parent | f8ae56490664e716ea1ad701172c7aaa39e9a5ab (diff) |
pixel_format: RGBA4444 and RGBA5551 have alpha components
Diffstat (limited to 'render')
-rw-r--r-- | render/pixel_format.c | 4 |
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, |