aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-27 10:43:17 +0100
committeremersion <contact@emersion.fr>2018-01-27 10:43:17 +0100
commit7111dd79efb6cccf39866051a92090cfc9ea5c67 (patch)
treed3e05791ad4341cddbb038840d99b2d4cd5bdae7 /rootston/cursor.c
parenta011a1cb075bed2235162f1af7e88d0ee534acad (diff)
rootston: damage tracking for rotated views
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c2
1 files changed, 1 insertions, 1 deletions
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;
}