]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
tweaking of coordinates for vfo a/b click
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 12 Feb 2022 06:18:05 +0000 (11:48 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 12 Feb 2022 06:18:05 +0000 (11:48 +0530)
vfo.c

diff --git a/vfo.c b/vfo.c
index dc8505d14247a6c6ac24ac9ca2396a4810f76667..eda0a46d5f63bd5605eeddde31e98fa89fdac574 100644 (file)
--- 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;