openbsd-ports/x11/wmclock/patches/patch-wmclock_c
wilfried b8d08e83fd Initial import of wmclock-1.0.12.2
wmclock is an applet which displays the date and time in a dockable
tile in the same style as the clock from the NEXTSTEP operating
system.

Submitted by Marc Matteo <marcm@lectroid.net>
2001-11-06 13:57:08 +00:00

18 lines
914 B
Plaintext

$OpenBSD: patch-wmclock_c,v 1.1.1.1 2001/11/06 13:57:08 wilfried Exp $
--- wmclock.c.orig Wed Mar 8 08:31:33 2000
+++ wmclock.c Tue Nov 6 14:40:26 2001
@@ -470,11 +470,11 @@ void showYear()
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 % 1000);
+ 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]);
- digitXOffset = LED_NUM_WIDTH * (year % 100);
+ digitXOffset = LED_NUM_WIDTH * (year / 10 % 10);
XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
xPos[DIGIT_3_X_POS], yPos[DIGIT_Y_POS]);