From ab0cce7cb7ce40cd8d65809c29c7dfc794109689 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 4 Jan 2025 10:48:32 +0300 Subject: Add Xrgb/Xbgr to color formats At least until the scanout check is fixed in Smithay again. --- src/backend/tty.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/backend') diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 30e49289..67f99bbc 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -64,7 +64,12 @@ use crate::render_helpers::renderer::AsGlesRenderer; use crate::render_helpers::{resources, shaders, RenderTarget}; use crate::utils::{get_monotonic_time, is_laptop_panel, logical_output}; -const SUPPORTED_COLOR_FORMATS: [Fourcc; 2] = [Fourcc::Argb8888, Fourcc::Abgr8888]; +const SUPPORTED_COLOR_FORMATS: [Fourcc; 4] = [ + Fourcc::Xrgb8888, + Fourcc::Xbgr8888, + Fourcc::Argb8888, + Fourcc::Abgr8888, +]; pub struct Tty { config: Rc>, -- cgit