Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions protos/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ message YUV {
enum Chroma {
I420 = 0;
I444 = 1;
I400 = 2;
}

message VideoFrame {
Expand Down
14 changes: 14 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2380,6 +2380,18 @@ impl UserDefaultConfig {
keys::OPTION_ENABLE_FILE_COPY_PASTE => self.get_string(key, "Y", vec!["", "N"]),
keys::OPTION_EDGE_SCROLL_EDGE_THICKNESS => self.get_num_string(key, 100, 20, 150),
keys::OPTION_TRACKPAD_SPEED => self.get_num_string(key, 100, 10, 1000),
keys::OPTION_COLOR_MODE => {
let v = self.get_string(key, "i420", vec!["i444", "i400"]);
if v == "i420" {
if self.options.get(keys::OPTION_I444) == Some(&"Y".to_string()) {
"i444".to_string()
} else {
"i420".to_string()
}
} else {
v
}
}
Comment on lines +2383 to +2394
_ => self
.get_after(key)
.map(|v| v.to_string())
Expand Down Expand Up @@ -2867,6 +2879,8 @@ pub mod keys {
pub const OPTION_PRIVACY_MODE: &str = "privacy_mode";
pub const OPTION_TOUCH_MODE: &str = "touch-mode";
pub const OPTION_I444: &str = "i444";
// i444 is for backward compatibility
pub const OPTION_COLOR_MODE: &str = "color-mode";
Comment on lines 2881 to +2883
pub const OPTION_REVERSE_MOUSE_WHEEL: &str = "reverse_mouse_wheel";
pub const OPTION_SWAP_LEFT_RIGHT_MOUSE: &str = "swap-left-right-mouse";
pub const OPTION_DISPLAYS_AS_INDIVIDUAL_WINDOWS: &str = "displays_as_individual_windows";
Expand Down