|
|
@ -99,16 +99,16 @@ void wlr_box_transform(struct wlr_box *box,
|
|
|
|
dest->y = box->y;
|
|
|
|
dest->y = box->y;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WL_OUTPUT_TRANSFORM_FLIPPED_90:
|
|
|
|
case WL_OUTPUT_TRANSFORM_FLIPPED_90:
|
|
|
|
dest->x = box->y;
|
|
|
|
dest->x = box->height - box->y;
|
|
|
|
dest->y = box->x;
|
|
|
|
dest->y = box->width - box->x;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WL_OUTPUT_TRANSFORM_FLIPPED_180:
|
|
|
|
case WL_OUTPUT_TRANSFORM_FLIPPED_180:
|
|
|
|
dest->x = box->x;
|
|
|
|
dest->x = box->x;
|
|
|
|
dest->y = box->height - box->y;
|
|
|
|
dest->y = box->height - box->y;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case WL_OUTPUT_TRANSFORM_FLIPPED_270:
|
|
|
|
case WL_OUTPUT_TRANSFORM_FLIPPED_270:
|
|
|
|
dest->x = box->height - box->y;
|
|
|
|
dest->x = box->y;
|
|
|
|
dest->y = box->width - box->x;
|
|
|
|
dest->y = box->x;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|