mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
rootston: damage tracking for rotated views
This commit is contained in:
parent
a011a1cb07
commit
7111dd79ef
6 changed files with 74 additions and 13 deletions
|
|
@ -203,7 +203,7 @@ static void roots_cursor_update_position(struct roots_cursor *cursor,
|
|||
float angle = atan2(vx*uy - vy*ux, vx*ux + vy*uy);
|
||||
int steps = 12;
|
||||
angle = round(angle/M_PI*steps) / (steps/M_PI);
|
||||
view->rotation = cursor->view_rotation + angle;
|
||||
view_rotate(view, cursor->view_rotation + angle);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue