From 4333845e4c57b80ad774ee3796b020c5c7c21740 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 13 Jun 2024 11:11:57 +1000 Subject: [PATCH] tools/debug-gui: draw the evdev x/y axis with the right color We were drawing an arc but apparently in white which made it a tad hard to see on a white background. Draw this with the same color as the touchpoints so we can debug single-touch and tablet devices too. Part-of: --- tools/libinput-debug-gui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c index fc7b799e..83149b90 100644 --- a/tools/libinput-debug-gui.c +++ b/tools/libinput-debug-gui.c @@ -487,6 +487,7 @@ draw_evdev_abs(struct window *w, cairo_t *cr) outline_height = 1.0 * height/width * normalized_width; outline_width = normalized_width; + cairo_set_source_rgb(cr, .2, .2, .8); x = 1.0 * (w->evdev.x - ax->minimum)/width * outline_width; y = 1.0 * (w->evdev.y - ay->minimum)/height * outline_height; x += center_x - outline_width/2;