tools: debug-gui: add some extra targets for pointer acceleration testing

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-04-10 11:05:52 +10:00
parent 2ca8d6cb08
commit 4c31a1a285

View file

@ -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