surface: drop wlr_surface_get_matrix

This commit is contained in:
emersion 2018-03-15 18:35:22 +01:00
parent 8b58e1a3ad
commit 1914a1aa2b
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 0 additions and 26 deletions

View file

@ -628,18 +628,6 @@ struct wlr_surface *wlr_surface_create(struct wl_resource *res,
return surface;
}
void wlr_surface_get_matrix(struct wlr_surface *surface, float mat[static 9],
const float projection[static 9], const float transform[static 9]) {
int width = surface->texture->width;
int height = surface->texture->height;
wlr_matrix_identity(mat);
if (transform != NULL) {
wlr_matrix_multiply(mat, mat, transform);
}
wlr_matrix_scale(mat, width, height);
wlr_matrix_multiply(mat, projection, mat);
}
bool wlr_surface_has_buffer(struct wlr_surface *surface) {
return surface->texture && surface->texture->valid;
}