diff options
author | Simon Ser <contact@emersion.fr> | 2023-05-03 12:36:05 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-11-23 11:07:34 +0100 |
commit | 2eb225236eb72f27beec921e9f37ddf58e874fba (patch) | |
tree | e93ac7230acec8b28ce14ba199d9c063ee5d9727 /include/wlr/util | |
parent | 9e702e9cfe73f5aae665b5847cf470e66714e64a (diff) |
util/transform: add wlr_output_transform_coords()
We hand-roll this in multiple places.
Diffstat (limited to 'include/wlr/util')
-rw-r--r-- | include/wlr/util/transform.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |