aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-14 14:43:04 -0500
committerGitHub <noreply@github.com>2017-12-14 14:43:04 -0500
commit23fb663ea4eaff436d9bfab7f74cdd298fac44c5 (patch)
treef84e20d4af2a4111b0026679e853f6f55f9ddb4f /backend/drm
parent46ac8e1243d3d32c656b09e641f8e9732035f635 (diff)
parent466e86b7b2cbefa55ad5b85a97ee8257c24cb81b (diff)
Merge pull request #453 from emersion/surface-transform
Add surface transforms support
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index ba203791..96b7d93d 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -565,8 +565,7 @@ static bool wlr_drm_connector_set_cursor(struct wlr_output *output,
enum wl_output_transform transform =
wlr_output_transform_invert(output->transform);
struct wlr_box transformed_hotspot;
- wlr_output_transform_apply_to_box(transform, &hotspot,
- &transformed_hotspot);
+ wlr_box_transform(&hotspot, transform, &transformed_hotspot);
plane->cursor_hotspot_x = transformed_hotspot.x;
plane->cursor_hotspot_y = transformed_hotspot.y;
@@ -628,7 +627,7 @@ static bool wlr_drm_connector_move_cursor(struct wlr_output *output,
enum wl_output_transform transform =
wlr_output_transform_invert(output->transform);
struct wlr_box transformed_box;
- wlr_output_transform_apply_to_box(transform, &box, &transformed_box);
+ wlr_box_transform(&box, transform, &transformed_box);
if (plane != NULL) {
transformed_box.x -= plane->cursor_hotspot_x;