Set default output transform based on DRM panel orientation (#901)
This commit is contained in:
parent
a96394f7a6
commit
15a6425836
6 changed files with 40 additions and 19 deletions
|
|
@ -139,6 +139,10 @@ impl OutputConfig {
|
|||
self.mode.1.unwrap_or(60_000)
|
||||
}
|
||||
|
||||
pub fn transformed_size(&self) -> Size<i32, Physical> {
|
||||
self.transform.transform_size(self.mode_size())
|
||||
}
|
||||
|
||||
pub fn output_mode(&self) -> Mode {
|
||||
Mode {
|
||||
size: self.mode_size(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue