From 7111dd79efb6cccf39866051a92090cfc9ea5c67 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 27 Jan 2018 10:43:17 +0100 Subject: rootston: damage tracking for rotated views --- rootston/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootston/cursor.c') diff --git a/rootston/cursor.c b/rootston/cursor.c index a09211b7..158c4708 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -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; } -- cgit v1.2.3