From d498855b9d6f8d7f0ccde42a026fb0619d99b8a2 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 30 Jan 2018 10:23:35 +0100 Subject: backend/drm: fix hw cursor position on rotated and scaled outputs output: add wlr_output_transformed_resolution --- include/wlr/types/wlr_output.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 7e9439af..5b6ba3e7 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -106,6 +106,14 @@ void wlr_output_set_transform(struct wlr_output *output, void wlr_output_set_position(struct wlr_output *output, int32_t lx, int32_t ly); void wlr_output_set_scale(struct wlr_output *output, float scale); void wlr_output_destroy(struct wlr_output *output); +/** + * Computes the transformed output resolution. + */ +void wlr_output_transformed_resolution(struct wlr_output *output, + int *width, int *height); +/** + * Computes the transformed and scaled output resolution. + */ void wlr_output_effective_resolution(struct wlr_output *output, int *width, int *height); /** -- cgit v1.2.3