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:
parent
e7389e3f98
commit
11ab98b206
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362380
@ -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
|
||||
|
22
comms/dcf77pi/files/patch-d3ab071
Normal file
22
comms/dcf77pi/files/patch-d3ab071
Normal 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);
|
||||
|
Loading…
Reference in New Issue
Block a user