Date: Mon, 12 Jan 2015 01:16:53 +0000 (UTC) From: Stephen Hurd <shurd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376810 - in head/comms/wsjt: . files Message-ID: <201501120116.t0C1GrX2065384@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501120116.t0C1GrX2065384>