mirror of https://github.com/wayvr-org/wayvr.git
x11: fix upright screens
This commit is contained in:
parent
71068a0215
commit
2bfa78e9db
|
|
@ -666,7 +666,11 @@ fn create_screen_state(
|
|||
Transform::_270 | Transform::Flipped270 => {
|
||||
Affine2::from_cols(Vec2::Y * (res.0 as f32 / res.1 as f32), Vec2::X, center)
|
||||
}
|
||||
_ => Affine2::from_cols(Vec2::X, Vec2::Y * (-res.0 as f32 / res.1 as f32), center),
|
||||
_ if res.1 > res.0 => {
|
||||
// Xorg upright screens
|
||||
Affine2::from_cols(Vec2::X * (res.1 as f32 / res.0 as f32), Vec2::NEG_Y, center)
|
||||
}
|
||||
_ => Affine2::from_cols(Vec2::X, Vec2::NEG_Y * (res.0 as f32 / res.1 as f32), center),
|
||||
};
|
||||
|
||||
OverlayState {
|
||||
|
|
|
|||
Loading…
Reference in New Issue