svn commit: r376810 - in head/comms/wsjt: . files
Stephen Hurd
shurd at FreeBSD.org
Mon Jan 12 01:16:53 UTC 2015
Author: shurd
Date: Mon Jan 12 01:16:52 2015
New Revision: 376810
URL: https://svnweb.freebsd.org/changeset/ports/376810
QAT: https://qat.redports.org/buildarchive/r376810/
Log:
Fix waterfall display (was previously disabled by the patch).
Modified:
head/comms/wsjt/Makefile
head/comms/wsjt/files/patch-WsjtMod_specjt.py (contents, props changed)
Modified: head/comms/wsjt/Makefile
==============================================================================
--- head/comms/wsjt/Makefile Mon Jan 12 01:14:09 2015 (r376809)
+++ head/comms/wsjt/Makefile Mon Jan 12 01:16:52 2015 (r376810)
@@ -2,7 +2,7 @@
PORTNAME= wsjt
VERSION= 9.1
-PORTREVISION= 8
+PORTREVISION= 9
DISTVERSION= ${VERSION}.r${SVN_REV}
CATEGORIES= comms hamradio
MASTER_SITES= ${MASTER_SITE_LOCAL}
Modified: head/comms/wsjt/files/patch-WsjtMod_specjt.py
==============================================================================
--- head/comms/wsjt/files/patch-WsjtMod_specjt.py Mon Jan 12 01:14:09 2015 (r376809)
+++ head/comms/wsjt/files/patch-WsjtMod_specjt.py Mon Jan 12 01:16:52 2015 (r376810)
@@ -1,5 +1,5 @@
---- WsjtMod/specjt.py.orig 2011-09-13 15:56:59.000000000 -0400
-+++ WsjtMod/specjt.py 2014-12-15 21:26:06.000000000 -0500
+--- WsjtMod/specjt.py.orig 2011-09-13 12:56:59.000000000 -0700
++++ WsjtMod/specjt.py 2015-01-09 04:04:37.000000000 -0800
@@ -11,13 +11,9 @@
import cPickle
import tkMessageBox
@@ -22,7 +22,24 @@
c=Canvas()
-a=zeros(225000,'s')
-+##a=zeros(225000,'s')
++a=zeros(225000,'uint16')
im=Image.new('P',(750,300))
line0=Image.new('P',(750,1)) #Image fragment for top line of waterfall
draw=ImageDraw.Draw(im)
+@@ -330,11 +326,14 @@
+ except:
+ print "Images did not match, continuing anyway."
+ for i in range(n):
+- line0.putdata(a[750*i:750*(i+1)]) #One row of pixels to line0
++ for j in range(0, 749):
++ line0.putpixel((j,0), a[750*i+j])
+ im.paste(line0,(0,i)) #Paste in new top line
+ nscroll=nscroll+n
+ else: #A scale factor has changed
+- im.putdata(a) #Compute whole new image
++ for i in range(0, 300):
++ for j in range(0, 749):
++ im.putpixel((j,i), a[750*i+j])
+ b0=brightness #Save scale values
+ c0=contrast
+ logm0=logm
More information about the svn-ports-head
mailing list