mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
backend/drm: fix hw cursor position on rotated and scaled outputs
output: add wlr_output_transformed_resolution
This commit is contained in:
parent
d0961a02af
commit
d498855b9d
4 changed files with 33 additions and 45 deletions
|
|
@ -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);
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue