summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-28 08:37:34 +0200
committerThomas White <taw@physics.org>2019-06-28 08:37:34 +0200
commitb769d3211d3d9c88929e0e4299a4758ebac226f0 (patch)
treecd727b5056c1973eb0586f891371350e51983960
parentf21d7d46143f63c39375326ae23b6b1ac1259ce1 (diff)
Fix direction of tilt movement on screen
-rw-r--r--src/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 111e5d4..742863f 100644
--- a/src/display.c
+++ b/src/display.c
@@ -78,7 +78,7 @@ static void draw_fixture(cairo_t *cr, PangoContext *pc, PangoFontDescription *fo
if ( fix->cls->attributes & PANTILT ) {
double x = w*(1.0 + fix->pan)/2.0;
- double y = h*(1.0 + fix->tilt)/2.0;
+ double y = h*(1.0 - fix->tilt)/2.0;
cairo_move_to(cr, x, -1.0);
cairo_line_to(cr, x, h+1.0);