aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-30 10:23:35 +0100
committeremersion <contact@emersion.fr>2018-01-30 10:23:35 +0100
commitd498855b9d6f8d7f0ccde42a026fb0619d99b8a2 (patch)
tree2b4e445864bd7486973c4b33ad828d37e6c4c036 /include/wlr
parentd0961a02af36aee2b051ac6775c928a1f64ebc70 (diff)
backend/drm: fix hw cursor position on rotated and scaled outputs
output: add wlr_output_transformed_resolution
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h8
1 files changed, 8 insertions, 0 deletions
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);
/**