compositor: Create the inverse of the output matrix
Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <b.harrington@samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
d19e9b0e42
commit
c002321cd6
@@ -4003,6 +4003,8 @@ weston_output_update_matrix(struct weston_output *output)
|
|||||||
output->current_scale, 1);
|
output->current_scale, 1);
|
||||||
|
|
||||||
output->dirty = 0;
|
output->dirty = 0;
|
||||||
|
|
||||||
|
weston_matrix_invert(&output->inverse_matrix, &output->matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -185,6 +185,8 @@ struct weston_output {
|
|||||||
|
|
||||||
/** From global to output buffer coordinates. */
|
/** From global to output buffer coordinates. */
|
||||||
struct weston_matrix matrix;
|
struct weston_matrix matrix;
|
||||||
|
/** From output buffer to global coordinates. */
|
||||||
|
struct weston_matrix inverse_matrix;
|
||||||
|
|
||||||
struct wl_list animation_list;
|
struct wl_list animation_list;
|
||||||
int32_t x, y, width, height;
|
int32_t x, y, width, height;
|
||||||
|
|||||||
Reference in New Issue
Block a user