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

@ -136,7 +136,12 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
wlr_render_pass_add_texture(pass, &(struct wlr_render_texture_options){
.texture = sample->cat_texture,
.dst_box = box,
.dst_box = (struct wlr_fbox){
.x = box.x,
.y = box.y,
.width = box.width,
.height = box.height,
},
});
}

View file

@ -123,7 +123,7 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
});
if (sample->proximity) {
struct wlr_box box = {
struct wlr_fbox box = {
.x = (sample->x * pad_width) - 8 * (sample->pressure + 1) + left,
.y = (sample->y * pad_height) - 8 * (sample->pressure + 1) + top,
.width = 16 * (sample->pressure + 1),