Commit b79d8938 authored by Manuel Stoeckl's avatar Manuel Stoeckl
Browse files

Fix wl_output_transform rotation direction

This was previously calibrated against Weston, but it turns out that
Weston was wrong and had used clockwise rotations where the Wayland
specification required counterclockwise rotations.
parent 6fc4f641
Pipeline #109276 passed with stages
in 1 minute and 10 seconds
...@@ -499,15 +499,11 @@ static int compute_damage_coordinates(int *xlow, int *xhigh, int *ylow, ...@@ -499,15 +499,11 @@ static int compute_damage_coordinates(int *xlow, int *xhigh, int *ylow,
/* Each of the eight transformations corresponds to a /* Each of the eight transformations corresponds to a
* unique set of reflections: X<->Y | Xflip | Yflip */ * unique set of reflections: X<->Y | Xflip | Yflip */
uint32_t magic = 0x14723650; uint32_t magic = 0x74125630;
/* idx 76543210 /* idx 76543210
* xyech = 10101010 * xyech = 10101010
* xflip = 01101100 * xflip = 11000110
* yflip = 00110110 * yflip = 10011100
* ffff
* 21 21
* 789 789
* 00000000
*/ */
bool xyexch = magic & (1u << (4 * transform)); bool xyexch = magic & (1u << (4 * transform));
bool xflip = magic & (1u << (4 * transform + 1)); bool xflip = magic & (1u << (4 * transform + 1));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment