mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-10 04:27:51 -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
|
|
@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue