mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
Fix wlr_output_transform_compose
This commit is contained in:
parent
7efd9885b6
commit
31c8bdc277
1 changed files with 0 additions and 3 deletions
|
@ -916,8 +916,5 @@ enum wl_output_transform wlr_output_transform_compose(
|
|||
uint32_t flipped = (tr_a ^ tr_b) & WL_OUTPUT_TRANSFORM_FLIPPED;
|
||||
uint32_t rotated =
|
||||
(tr_a + tr_b) & (WL_OUTPUT_TRANSFORM_90 | WL_OUTPUT_TRANSFORM_180);
|
||||
if ((tr_a & WL_OUTPUT_TRANSFORM_FLIPPED) && (tr_b & WL_OUTPUT_TRANSFORM_FLIPPED)) {
|
||||
rotated = wlr_output_transform_invert(rotated);
|
||||
}
|
||||
return flipped | rotated;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue