From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sat, 12 Feb 2022 12:31:39 +0000 (+0530)
Subject: VFO a and b mouse event coordinates tweaking
X-Git-Url: https://git.rkrishnan.org/pf/content/en/frontends/flags//%22?a=commitdiff_plain;h=c3731e037e321480bde6c043f751cc07f46a5788;p=pihpsdr.git

VFO a and b mouse event coordinates tweaking
---

diff --git a/vfo.c b/vfo.c
index 0655353..b6fb3c6 100644
--- a/vfo.c
+++ b/vfo.c
@@ -1315,11 +1315,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 <= 50) {
+    if (event->x >= 260 && event->y <= 40) {
         // vfo B
         start_vfo(VFO_B);
         return TRUE;
-    } else if (event->x >= 260 && event->y > 50) {
+    } else if (event->x >= 260 && event->y > 40) {
         // vfo A
         start_vfo(VFO_A);
         return TRUE;