kms: Handle max bpc property

This commit is contained in:
Victoria Brekenfeld 2023-04-18 19:14:31 +02:00
parent 2fde693cce
commit 1a8432395c
3 changed files with 57 additions and 2 deletions

View file

@ -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,
}
}
}