forge
Explore
Log in

Don't you dare go Hollow

Add Xrgb/Xbgr to color formats

Browse files at this commit

ab0cce7cb7ce40cd8d65809c29c7dfc794109689Ivan MolodetskikhParent: 2e422fc
At least until the scanout check is fixed in Smithay again.
src/backend/tty.rsmodified+6 -1
@@ -64,7 +64,12 @@ use crate::render_helpers::renderer::AsGlesRenderer;
64 use crate::render_helpers::{resources, shaders, RenderTarget};64 use crate::render_helpers::{resources, shaders, RenderTarget};
65 use crate::utils::{get_monotonic_time, is_laptop_panel, logical_output};65 use crate::utils::{get_monotonic_time, is_laptop_panel, logical_output};
66 66
67-const SUPPORTED_COLOR_FORMATS: [Fourcc; 2] = [Fourcc::Argb8888, Fourcc::Abgr8888];67+const SUPPORTED_COLOR_FORMATS: [Fourcc; 4] = [
68+ Fourcc::Xrgb8888,
69+ Fourcc::Xbgr8888,
70+ Fourcc::Argb8888,
71+ Fourcc::Abgr8888,
72+];
68 73
69 pub struct Tty {74 pub struct Tty {
70 config: Rc<RefCell<Config>>,75 config: Rc<RefCell<Config>>,