video: allow configuring the output brightness
This commit is contained in:
parent
7d0c9e2c3f
commit
27025a565c
19 changed files with 343 additions and 40 deletions
|
|
@ -795,6 +795,13 @@ impl Client {
|
|||
});
|
||||
}
|
||||
|
||||
pub fn connector_set_brightness(&self, connector: Connector, brightness: Option<f64>) {
|
||||
self.send(&ClientMessage::ConnectorSetBrightness {
|
||||
connector,
|
||||
brightness,
|
||||
});
|
||||
}
|
||||
|
||||
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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue