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:
Dominique Martinet 2018-03-18 08:59:56 +01:00
parent 1956d3cedb
commit a491f780b8
3 changed files with 11 additions and 11 deletions

View file

@ -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;
}