Commits on Source (7)
-
New function that transforms a pixman_box32_t rectangle by a matrix. Since pixman rectangles are represented by 2 corners, non-90 degree rotations can't be properly represented. This function gives the axis aligned rectangle that encloses the rotated rectangle. We use this for weston_matrix_transform_region(), simplifying it and allowing it to work for non 90 degree rotations. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
77f094ed -
Now that we have weston_matrix_transform_rect we can use that instead of weston_transformed_coord + viewport_surface_to_buffer. viewport_surface_to_buffer no longer has users, so remove it. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
8191aa21 -
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
df96fd43 -
Replace all uses of weston_transform_region with weston_matrix_transform_region, then remove the function completely. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
c12ec7a2 -
These no longer have any callers, so they can go. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2e5b6207 -
Rename weston_output_region_from_global to weston_region_global_to_output, and also no longer modify in place. Trying to make it look a little nicer, as well as making it easier to use from other places that don't want modify in place semantics. This becomes a very thin wrapper around weston_matrix_transform_region. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
342afb39 -
Use this anywhere we used weston_matrix_transform_region with an output matrix. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
21deaee6