Bug 236848

Summary: x11-clocks/tclock: fix bug drawing hands late when starting in position 0
Product: Ports & Packages Reporter: Klaus Aehlig <aehlig>
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch for x11-clocks/tclock to fix late drawing of hands aehlig: maintainer-approval+

Description Klaus Aehlig 2019-03-28 08:13:42 UTC
Created attachment 203211 [details]
patch for x11-clocks/tclock to fix late drawing of hands

tclock(1) draws a transparent clock; hands are only redrawn if they moved. While this approach is fine in general, it lead to hands being drawn late (the second hand only after a second, the minute hand only after a minute, ...) if they started in position (i.e., if the clock was started at the full minute, full hour, ...). Fix this by setting the initial position to an invalid value, forcing immediate redraw upon startup. Reported and patch provided by Kurt Hackenberg <kh@panix.com>. Bump PORTREVISION, as this fixes a bug in the program.

While there, rearrange sections in the Makefile to make portlint more happy.
Comment 1 Steve Wills freebsd_committer freebsd_triage 2019-04-10 21:50:15 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-04-11 00:53:48 UTC
A commit references this bug:

Author: swills
Date: Thu Apr 11 00:52:52 UTC 2019
New revision: 498625
URL: https://svnweb.freebsd.org/changeset/ports/498625

Log:
  x11-clocks/tclock: fix drawing bug

  PR:		236848
  Submitted by:	Klaus Aehlig <aehlig@linta.de> (maintainer)

Changes:
  head/x11-clocks/tclock/Makefile
  head/x11-clocks/tclock/files/patch-tclock.c