]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
clang-format rx_pandapter.h
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Mon, 11 Dec 2023 07:11:17 +0000 (12:41 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sun, 17 Dec 2023 05:57:32 +0000 (11:27 +0530)
receiver.c
rx_panadapter.h
vfo.c

index f34dc1e70feddf3f19613f5d95a6c9b282518eba..258a1853e6403e6a45cca1acccac6e281d0cb81b 100644 (file)
@@ -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;
index 45846c8262a5397bb89fac6aa0c0cae6b12878bd..27828336717c2714f396bf0714b58252a362e33a 100644 (file)
@@ -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 31ef51e21123df6dbdc54b236a374db10a37f9a4..a1e586c1e9cf17be7213fba45e858d399864e625 100644 (file)
--- 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;