openbsd-ports/x11/wmclock/patches/patch-wmclock_c

18 lines
914 B
Plaintext
Raw Normal View History

$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]);