From 9b091f528e5d9373b725fae1f84ef6c4127e1e9b Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 6 Sep 2022 18:48:41 -0400 Subject: pixel_format: RGBA4444 and RGBA5551 have alpha components --- render/pixel_format.c | 4 ++-- 1 file 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, -- cgit v1.2.3