summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-05-21 12:19:17 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-05-21 12:19:17 +1000
commitfbd284ec144fee52d9cd2a2cc2d3ddcb0c160e32 (patch)
treec748e50a6438fdfaec54bdec3722ccb04921fd28 /tools
parentc94b33768aa9f6c6ca23fc380084f6d6e3c67b56 (diff)
parentd6e531349745ff38ae457169d5089ea61297accf (diff)
downloadlibinput-fbd284ec144fee52d9cd2a2cc2d3ddcb0c160e32.tar.gz
Merge branch 'wip/touchpad-pointer-accel-v7'
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-debug-gui.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c
index ab49ad66..f838b08b 100644
--- a/tools/libinput-debug-gui.c
+++ b/tools/libinput-debug-gui.c
@@ -342,6 +342,21 @@ draw_background(struct window *w, cairo_t *cr)
cairo_rel_line_to(cr, 20, 0);
}
cairo_stroke(cr);
+
+ /* round targets */
+ for (int i = 0; i <= 3; i++) {
+ x1 = w->width * i/4.0;
+ x2 = w->width * i/4.0;
+
+ y1 = w->height * 1.0/4.0;
+ y2 = w->height * 3.0/4.0;
+
+ cairo_arc(cr, x1, y1, 10, 0, 2 * M_PI);
+ cairo_stroke(cr);
+ cairo_arc(cr, x2, y2, 10, 0, 2 * M_PI);
+ cairo_stroke(cr);
+ }
+
}
static gboolean