From 9ec69248d7ea5984e154d04a822bb9790045042e Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Mon, 11 Dec 2023 12:41:17 +0530
Subject: [PATCH] clang-format rx_pandapter.h

---
 receiver.c      |  6 ++++++
 rx_panadapter.h | 41 ++++++++++++++++++++---------------------
 vfo.c           |  1 -
 3 files changed, 26 insertions(+), 22 deletions(-)

diff --git a/receiver.c b/receiver.c
index f34dc1e..258a185 100644
--- a/receiver.c
+++ b/receiver.c
@@ -63,6 +63,12 @@ gboolean receiver_button_press_event(GtkWidget *widget, GdkEventButton *event,
                                      gpointer data) {
     RECEIVER *rx = (RECEIVER *)data;
     if (rx == active_receiver) {
+        // button has the following values:
+        // 1. left mouse button
+        // 2. middle button.
+        // 3. right button.
+        // 4. ??
+        // 5. ??
         if (event->button == 1) {
             last_x = (int)event->x;
             has_moved = FALSE;
diff --git a/rx_panadapter.h b/rx_panadapter.h
index 45846c8..2782833 100644
--- a/rx_panadapter.h
+++ b/rx_panadapter.h
@@ -1,30 +1,29 @@
 /* Copyright (C)
-* 2015 - John Melton, G0ORX/N6LYT
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-*
-*/
+ * 2015 - John Melton, G0ORX/N6LYT
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ *
+ */
 
 #ifndef _PANADAPTER_H
 #define _PANADAPTER_H
 
-#include "receiver.h"  // for RECEIVER
+#include "receiver.h" // for RECEIVER
 
-void rx_panadapter_update(RECEIVER* rx);
-
-void rx_panadapter_init(RECEIVER *rx,int width,int height);
+void rx_panadapter_update(RECEIVER *rx);
 
+void rx_panadapter_init(RECEIVER *rx, int width, int height);
 
 #endif
diff --git a/vfo.c b/vfo.c
index 31ef51e..a1e586c 100644
--- a/vfo.c
+++ b/vfo.c
@@ -597,7 +597,6 @@ void vfo_step(int steps) {
 #endif
 
     if (!locked) {
-
         if (vfo[id].ctun) {
             // don't let ctun go beyond end of passband
             long long frequency = vfo[id].frequency;
-- 
2.45.2