diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-04 10:48:32 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-04 11:22:56 +0300 |
| commit | ab0cce7cb7ce40cd8d65809c29c7dfc794109689 (patch) | |
| tree | bb24ab46617e7a65fe378abebcb94432ef20aee0 | |
| parent | 2e422fc026490267ce19c36cf70d3626657fccef (diff) | |
| download | niri-ab0cce7cb7ce40cd8d65809c29c7dfc794109689.tar.gz niri-ab0cce7cb7ce40cd8d65809c29c7dfc794109689.tar.bz2 niri-ab0cce7cb7ce40cd8d65809c29c7dfc794109689.zip | |
Add Xrgb/Xbgr to color formats
At least until the scanout check is fixed in Smithay again.
| -rw-r--r-- | src/backend/tty.rs | 7 |
1 files changed, 6 insertions, 1 deletions
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<RefCell<Config>>, |
