mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
scene: fix buffer source box transforming
This commit is contained in:
parent
3b75ab97e2
commit
92e3c5b798
1 changed files with 5 additions and 8 deletions
|
@ -613,15 +613,12 @@ void wlr_scene_buffer_set_buffer_with_damage(struct wlr_scene_buffer *scene_buff
|
||||||
if (wlr_fbox_empty(&box)) {
|
if (wlr_fbox_empty(&box)) {
|
||||||
box.x = 0;
|
box.x = 0;
|
||||||
box.y = 0;
|
box.y = 0;
|
||||||
|
|
||||||
if (scene_buffer->transform & WL_OUTPUT_TRANSFORM_90) {
|
|
||||||
box.width = buffer->height;
|
|
||||||
box.height = buffer->width;
|
|
||||||
} else {
|
|
||||||
box.width = buffer->width;
|
box.width = buffer->width;
|
||||||
box.height = buffer->height;
|
box.height = buffer->height;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
wlr_fbox_transform(&box, &box, scene_buffer->transform,
|
||||||
|
buffer->width, buffer->height);
|
||||||
|
|
||||||
double scale_x, scale_y;
|
double scale_x, scale_y;
|
||||||
if (scene_buffer->dst_width || scene_buffer->dst_height) {
|
if (scene_buffer->dst_width || scene_buffer->dst_height) {
|
||||||
|
|
Loading…
Reference in a new issue