summaryrefslogtreecommitdiff
path: root/ham/linpsk/patches/patch-af
blob: f4de123b4216789913f6572be505e4e7a640c652 (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
$NetBSD: patch-af,v 1.3 2012/07/03 18:06:38 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());
   }
@@ -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() )