From b769d3211d3d9c88929e0e4299a4758ebac226f0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 28 Jun 2019 08:37:34 +0200 Subject: Fix direction of tilt movement on screen --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3