From 664307f9682eaac573b22a2282a6d089e1abd489 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Mon, 23 Aug 2021 23:32:43 +0300 Subject: util/box: introduce wlr_fbox_transform() A floating-point version of wlr_box_transform(). --- include/wlr/util/box.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr/util') diff --git a/include/wlr/util/box.h b/include/wlr/util/box.h index 5be2cdc1..b9ddca25 100644 --- a/include/wlr/util/box.h +++ b/include/wlr/util/box.h @@ -78,4 +78,9 @@ bool wlr_box_empty(const struct wlr_box *box); void wlr_box_transform(struct wlr_box *dest, const struct wlr_box *box, enum wl_output_transform transform, int width, int height); +/** + * Transforms a floating-point box inside a (0, 0, width, height) box. + */ +void wlr_fbox_transform(struct wlr_fbox *dest, const struct wlr_fbox *box, + enum wl_output_transform transform, double width, double height); #endif -- cgit v1.2.3