mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 07:10:05 +01:00
xfree86: fix initial output positions with Above or LeftOf and rotation
The fix in fa19e84714 was incomplete,
as it was still using the wrong output's initial rotation to compute
the position.
This commit is contained in:
parent
7dca84f3ee
commit
82c4075d4b
1 changed files with 2 additions and 2 deletions
|
|
@ -1137,10 +1137,10 @@ xf86InitialOutputPositions (ScrnInfoPtr scrn, DisplayModePtr *modes)
|
|||
output->initial_x += xf86ModeWidth (modes[or], relative->initial_rotation);
|
||||
break;
|
||||
case OPTION_ABOVE:
|
||||
output->initial_y -= xf86ModeHeight (modes[o], relative->initial_rotation);
|
||||
output->initial_y -= xf86ModeHeight (modes[o], output->initial_rotation);
|
||||
break;
|
||||
case OPTION_LEFT_OF:
|
||||
output->initial_x -= xf86ModeWidth (modes[o], relative->initial_rotation);
|
||||
output->initial_x -= xf86ModeWidth (modes[o], output->initial_rotation);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue