[Pkg-wmaker-commits] [wmclock] 05/66: wmclock: Show correct year when -year is given.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 10:52:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmclock.
commit aaf8e3625a6460ee2adb0f5e95fe366750faf76f
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Thu Dec 11 09:18:07 2014 -0600
wmclock: Show correct year when -year is given.
From the Debian patch:
http://sources.debian.net/src/wmclock/1.0.14-6/debian/patches/correct_year.patch/
For more information, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723887
---
wmclock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wmclock.c b/wmclock.c
index d65e7e6..3feb937 100644
--- a/wmclock.c
+++ b/wmclock.c
@@ -490,7 +490,7 @@ void showYear(void)
XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
xPos[DIGIT_1_X_POS], yPos[DIGIT_Y_POS]);
- digitXOffset = LED_NUM_WIDTH * ((year % 100) % 10);
+ digitXOffset = LED_NUM_WIDTH * ((year / 100) % 10);
XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
xPos[DIGIT_2_X_POS], yPos[DIGIT_Y_POS]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmclock.git
More information about the Pkg-wmaker-commits
mailing list