summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-04-10 11:05:52 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-05-21 12:18:58 +1000
commit4c31a1a285c97bffc97f0ad9551285341e913d23 (patch)
tree9187b53663c891256eb0bfe785771b0412d50226 /tools
parent2ca8d6cb08ec4a9c6b009862087199b580fac83b (diff)
tools: debug-gui: add some extra targets for pointer acceleration testing
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
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