cmm: enable using the display primaries in SDR mode
This commit is contained in:
parent
2b7b3b5310
commit
67760e270e
19 changed files with 259 additions and 21 deletions
|
|
@ -1124,6 +1124,13 @@ impl ConfigClient {
|
|||
});
|
||||
}
|
||||
|
||||
pub fn connector_set_use_native_gamut(&self, connector: Connector, use_native_gamut: bool) {
|
||||
self.send(&ClientMessage::ConnectorSetUseNativeGamut {
|
||||
connector,
|
||||
use_native_gamut,
|
||||
});
|
||||
}
|
||||
|
||||
pub fn connector_get_scale(&self, connector: Connector) -> f64 {
|
||||
let res = self.send_with_response(&ClientMessage::ConnectorGetScale { connector });
|
||||
get_response!(res, 1.0, ConnectorGetScale { scale });
|
||||
|
|
|
|||
|
|
@ -816,6 +816,10 @@ pub enum ClientMessage<'a> {
|
|||
position: BarPosition,
|
||||
},
|
||||
GetBarPosition,
|
||||
ConnectorSetUseNativeGamut {
|
||||
connector: Connector,
|
||||
use_native_gamut: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue