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

@ -1452,12 +1452,19 @@ static void scene_entry_render(struct render_list_entry *entry, const struct ren
int x = entry->x - data->logical.x;
int y = entry->y - data->logical.y;
struct wlr_box dst_box = {
struct wlr_box box = {
.x = x,
.y = y,
};
scene_node_get_size(node, &dst_box.width, &dst_box.height);
transform_output_box(&dst_box, data);
scene_node_get_size(node, &box.width, &box.height);
transform_output_box(&box, data);
struct wlr_fbox dst_box = (struct wlr_fbox){
.x = box.x,
.y = box.y,
.width = box.width,
.height = box.height,
};
pixman_region32_t opaque;
pixman_region32_init(&opaque);