summaryrefslogtreecommitdiff
path: root/ham/linpsk/patches/patch-af
blob: be9174ac8405a9d88b703d397a80d969e10ae95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
$NetBSD: patch-af,v 1.4 2016/12/25 21:45:09 joerg Exp $

--- src/linpsk.cpp.orig	2005-03-11 17:21:20.000000000 +0000
+++ src/linpsk.cpp
@@ -44,6 +44,8 @@
 
 #include <vector>
 
+#include <pkgsrc_fixes.h>
+
 #include "controlpanel.h"
 #include "crxdisplay.h"
 #include "ctxdisplay.h"
@@ -416,7 +418,7 @@ if ( Channel->exec() != 0)
                          rxmode,
                          Channel->TitleText->text());
 
-  settings.ActChannel->setWindowColor(WindowColors.at(settings.RxChannels));
+  settings.ActChannel->setWindowColor(at_replacement(WindowColors,settings.RxChannels));
   settings.RxChannels++;
   RxDisplay->RxFreq->setAfcDisplayMode(settings.ActChannel->AfcProperties());
   }
@@ -505,7 +507,7 @@ if ( Modulator != 0 )
    }   
 else  
   {
-    if (Sound > 0)
+    if (Sound)
      Sound->PTT(false); 
     if (RxDisplay->start_process_loop())
      {
@@ -602,7 +604,7 @@ if (settings.DemoMode)
 else
    Sound = new CSound(settings.serial);
 
-if ( Sound <= 0 )
+if ( Sound == 0 )
   {
     QMessageBox::critical(0," Programm Error! LinPsk","Could not create Sound Device for Output");
     TxDisplay->TxFunctions->RXTX->setStatus(ON);
@@ -781,7 +783,8 @@ if (Param != 0)
     RxDisplay->RxFreq->setAfcDisplayMode(settings.ActChannel->AfcProperties());
     RxDisplay->RxFreq->setAfcMode(settings.ActChannel->getAfcMode());
     Control->Display->setPhasePointer(settings.ActChannel->getPhasePointer());
-    settings.ActChannel->setParameter(Extra,&Menu.getParameter());    
+    ExtraParameter p(Menu.getParameter());
+    settings.ActChannel->setParameter(Extra,&p);
   }
  if (settings.ActChannel != 0 )
   switch(settings.ActChannel->getModulationType() )