From: Ramakrishnan Muthukrishnan Date: Sat, 12 Feb 2022 06:18:05 +0000 (+0530) Subject: tweaking of coordinates for vfo a/b click X-Git-Url: https://git.rkrishnan.org/Site/Content/simplejson/status?a=commitdiff_plain;h=3f3d177a9a2daa1cb5d8dd45af54fe6ce25656cf;p=pihpsdr.git tweaking of coordinates for vfo a/b click --- diff --git a/vfo.c b/vfo.c index dc8505d..eda0a46 100644 --- a/vfo.c +++ b/vfo.c @@ -1304,11 +1304,11 @@ vfo_press_event_cb (GtkWidget *widget, { // vfo a and b are drawn at x = 280, so it is the y coordinate // that matters. - if (event->x > 260 && event->y < 80) { + if (event->x >= 260 && event->y <= 50) { // vfo B start_vfo(VFO_B); return TRUE; - } else if (event->x > 260 && event->y > 80) { + } else if (event->x >= 260 && event->y > 50) { // vfo A start_vfo(VFO_A); return TRUE;