1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

comms/dcf77pi: apply upstream patch to fix display bug when realfreq is reset

This commit is contained in:
Rene Ladan 2014-07-20 21:59:06 +00:00
parent e7389e3f98
commit 11ab98b206
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362380
2 changed files with 24 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= dcf77pi
PORTVERSION= 3.1.0
PORTREVISION= 1
CATEGORIES= comms
MAINTAINER= rene@FreeBSD.org
@ -16,6 +17,7 @@ GH_COMMIT= d441662
USES= ncurses
PATCH_STRIP= -p1
PORTDOCS= README.md
INSTALL_TARGET= install-strip

View File

@ -0,0 +1,22 @@
commit d3ab071432f052c799dc5c77035913423abd16c4
Author: René Ladan <r.c.ladan@gmail.com>
Date: Sun Jul 20 12:44:57 2014 +0200
dcf77pi: fix display of freq_reset
diff --git a/dcf77pi.c b/dcf77pi.c
index 2e46911..ce61d51 100644
--- a/dcf77pi.c
+++ b/dcf77pi.c
@@ -218,9 +218,9 @@ display_bit_gui(uint16_t state, int bitpos)
bitinf->realfreq, (int)bitinf->bit0, (int)bitinf->bit20,
bitinf->maxone * 100, bitinf->a);
if (bitinf->freq_reset)
- mvwchgat(input_win, 3, 24, 8, A_BOLD, 3, NULL);
+ mvwchgat(input_win, 3, 22, 8, A_BOLD, 3, NULL);
else
- mvwchgat(input_win, 3, 24, 8, A_NORMAL, 7, NULL);
+ mvwchgat(input_win, 3, 22, 8, A_NORMAL, 7, NULL);
mvwprintw(input_win, 3, 1, "%2u", bitpos);