render/pass: accept fractional destination coordinates

Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
Loukas Agorgianitis 2025-12-08 11:47:15 +02:00
parent 91c08d5a53
commit 5a49f2ae14
No known key found for this signature in database
GPG key ID: DDC6FA7D5BB332E6
13 changed files with 79 additions and 47 deletions

View file

@ -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);