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
This commit is contained in:
parent
db7fcf291b
commit
84409015be
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue