kms: Handle max bpc property
This commit is contained in:
parent
2fde693cce
commit
1a8432395c
3 changed files with 57 additions and 2 deletions
|
|
@ -99,6 +99,8 @@ pub struct OutputConfig {
|
|||
pub position: (i32, i32),
|
||||
#[serde(default = "default_enabled")]
|
||||
pub enabled: bool,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub max_bpc: Option<u32>,
|
||||
}
|
||||
|
||||
impl Default for OutputConfig {
|
||||
|
|
@ -110,6 +112,7 @@ impl Default for OutputConfig {
|
|||
transform: Transform::Normal,
|
||||
position: (0, 0),
|
||||
enabled: true,
|
||||
max_bpc: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue