From e9706e62f550f81ca6cc1546aaa3660f654eeb9f Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 28 Aug 2023 15:01:05 -0400 Subject: renderer: Use wlr_render_rect_options_get_box Fixes: #3697 --- render/pixman/pass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/pixman/pass.c') diff --git a/render/pixman/pass.c b/render/pixman/pass.c index 4b85889b..5fe73b05 100644 --- a/render/pixman/pass.c +++ b/render/pixman/pass.c @@ -162,7 +162,8 @@ static void render_pass_add_rect(struct wlr_render_pass *wlr_pass, const struct wlr_render_rect_options *options) { struct wlr_pixman_render_pass *pass = get_render_pass(wlr_pass); struct wlr_pixman_buffer *buffer = pass->buffer; - struct wlr_box box = options->box; + struct wlr_box box; + wlr_render_rect_options_get_box(options, pass->buffer->buffer, &box); pixman_op_t op = get_pixman_blending(options->color.a == 1 ? WLR_RENDER_BLEND_MODE_NONE : options->blend_mode); -- cgit v1.2.3