mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 07:48:07 +02:00
pixman-renderer: Use width/height_from_buffer for buffer transforms
This fixes an issue in the pixman renderer where it would not render surfaces correctly if both wl_viewport and wl_surface.set_buffer_transform were used. Reviewed-by: Pekka Paalanen <ppaalanen@gmail.com> Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
d0cebc36fb
commit
4283370e01
1 changed files with 2 additions and 2 deletions
|
|
@ -291,8 +291,8 @@ repaint_region(struct weston_view *ev, struct weston_output *output,
|
|||
|
||||
transform_apply_viewport(&transform, ev->surface);
|
||||
|
||||
fw = pixman_int_to_fixed(ev->surface->width);
|
||||
fh = pixman_int_to_fixed(ev->surface->height);
|
||||
fw = pixman_int_to_fixed(ev->surface->width_from_buffer);
|
||||
fh = pixman_int_to_fixed(ev->surface->height_from_buffer);
|
||||
|
||||
switch (vp->buffer.transform) {
|
||||
case WL_OUTPUT_TRANSFORM_FLIPPED:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue