Add Xrgb/Xbgr to color formats
Browse files at this commitab0cce7cb7ce40cd8d65809c29c7dfc794109689Parent: 2e422fc1 changed file +6 -1
- src/backend/tty.rs +6 -1
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>>, |