summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-15 10:47:32 +0200
committerThomas White <taw@physics.org>2019-06-15 10:47:32 +0200
commit59bb7fe96b4448cbbca4d8f7d40c174eab8e8253 (patch)
tree9265d17e1792eba0ac58a1a88510276e8e78da83
parent0842f90137c842bf648c1b82027a98d0b966b88a (diff)
Improve rendering of pan/tilt crosshairs
-rw-r--r--src/nanolight.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nanolight.c b/src/nanolight.c
index aebe975..df93495 100644
--- a/src/nanolight.c
+++ b/src/nanolight.c
@@ -113,7 +113,7 @@ static void draw_fixture(cairo_t *cr, PangoContext *pc, PangoFontDescription *fo
if ( find_attribute(fix, ATT_PAN, &n) ) {
double x = w*fix->attr_vals[n] / 65535;
cairo_move_to(cr, x, -1.0);
- cairo_line_to(cr, x, h+2.0);
+ cairo_line_to(cr, x, h+1.0);
cairo_set_source_rgb(cr, 1.0, 0.0, 0.0);
cairo_set_line_width(cr, 1.0);
cairo_stroke(cr);
@@ -121,13 +121,13 @@ static void draw_fixture(cairo_t *cr, PangoContext *pc, PangoFontDescription *fo
if ( find_attribute(fix, ATT_TILT, &n) ) {
double y = h*(1.0 - (double)fix->attr_vals[n] / 65535);
cairo_move_to(cr, -1.0, y);
- cairo_line_to(cr, w+2.0, y);
+ cairo_line_to(cr, w+1.0, y);
cairo_set_source_rgb(cr, 1.0, 0.0, 0.0);
cairo_set_line_width(cr, 1.0);
cairo_stroke(cr);
}
- cairo_rectangle(cr, 0.5, 0.5, w, h);
+ cairo_rectangle(cr, 0.0, 0.0, w, h);
if ( fixture_selected(nl, fix) ) {
cairo_set_source_rgba(cr, 0.3, 0.3, 0.9, 0.9);
} else {