mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-13 13:29:44 -05:00
rootston rotation: change view->rotation sign
The convetion with wlr_matrix changed and it's a good time to remove all these pesky minus signs
This commit is contained in:
parent
1956d3cedb
commit
a491f780b8
3 changed files with 11 additions and 11 deletions
|
|
@ -557,8 +557,8 @@ static bool view_at(struct roots_view *view, double lx, double ly,
|
|||
double ox = view_sx - (double)box.width/2,
|
||||
oy = view_sy - (double)box.height/2;
|
||||
// Rotated coordinates
|
||||
double rx = cos(view->rotation)*ox - sin(view->rotation)*oy,
|
||||
ry = cos(view->rotation)*oy + sin(view->rotation)*ox;
|
||||
double rx = cos(view->rotation)*ox + sin(view->rotation)*oy,
|
||||
ry = cos(view->rotation)*oy - sin(view->rotation)*ox;
|
||||
view_sx = rx + (double)box.width/2;
|
||||
view_sy = ry + (double)box.height/2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue