mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-18 22:05:48 -05:00
render/pass: accept fractional destination coordinates
Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
parent
91c08d5a53
commit
5a49f2ae14
13 changed files with 79 additions and 47 deletions
|
|
@ -120,12 +120,12 @@ void matrix_projection(float mat[static 9], int width, int height,
|
|||
mat[8] = 1.0f;
|
||||
}
|
||||
|
||||
void wlr_matrix_project_box(float mat[static 9], const struct wlr_box *box,
|
||||
void wlr_matrix_project_box(float mat[static 9], const struct wlr_fbox *box,
|
||||
enum wl_output_transform transform, const float projection[static 9]) {
|
||||
int x = box->x;
|
||||
int y = box->y;
|
||||
int width = box->width;
|
||||
int height = box->height;
|
||||
float x = box->x;
|
||||
float y = box->y;
|
||||
float width = box->width;
|
||||
float height = box->height;
|
||||
|
||||
wlr_matrix_identity(mat);
|
||||
wlr_matrix_translate(mat, x, y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue