From 2eb225236eb72f27beec921e9f37ddf58e874fba Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 3 May 2023 12:36:05 +0200 Subject: util/transform: add wlr_output_transform_coords() We hand-roll this in multiple places. --- include/wlr/util/transform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/wlr/util/transform.h b/include/wlr/util/transform.h index d0ec5f53..6195e6d0 100644 --- a/include/wlr/util/transform.h +++ b/include/wlr/util/transform.h @@ -25,4 +25,9 @@ enum wl_output_transform wlr_output_transform_invert( enum wl_output_transform wlr_output_transform_compose( enum wl_output_transform tr_a, enum wl_output_transform tr_b); +/** + * Applies a transform to coordinates. + */ +void wlr_output_transform_coords(enum wl_output_transform tr, int *x, int *y); + #endif -- cgit v1.2.3