diff options
author | emersion <contact@emersion.fr> | 2017-12-01 09:15:33 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-01 09:15:33 +0100 |
commit | 6a69b4419fa25f4bbcbe3253ed000276cb6ace42 (patch) | |
tree | 94fe7d78224ba54e0be35cc6941fe9cb5c6526b3 /backend/drm | |
parent | f4754ad1a21eaede20f6e9c5d4e0c78294119cc1 (diff) |
Make wlr_output_transform_* functions public, refactoring
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index dd247998..cf6ad550 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -569,8 +569,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; @@ -632,7 +631,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); transformed_box.x -= plane->cursor_hotspot_x; transformed_box.y -= plane->cursor_hotspot_y; |