mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 16:58:01 +02:00
compositor: constify weston_surface_build_buffer_matrix()
Makes it easier to see that it does not change weston_surface state implicitly. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
2f783018ff
commit
04baea58fe
1 changed files with 2 additions and 2 deletions
|
|
@ -2708,10 +2708,10 @@ weston_surface_commit_subsurface_order(struct weston_surface *surface)
|
|||
}
|
||||
|
||||
static void
|
||||
weston_surface_build_buffer_matrix(struct weston_surface *surface,
|
||||
weston_surface_build_buffer_matrix(const struct weston_surface *surface,
|
||||
struct weston_matrix *matrix)
|
||||
{
|
||||
struct weston_buffer_viewport *vp = &surface->buffer_viewport;
|
||||
const struct weston_buffer_viewport *vp = &surface->buffer_viewport;
|
||||
double src_width, src_height, dest_width, dest_height;
|
||||
|
||||
weston_matrix_init(matrix);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue