1 --- wmclock.c-orig 2008-11-16 18:23:07.185633821 +0100
2 +++ wmclock.c 2008-11-16 18:23:25.482650412 +0100
3 @@ -828,7 +828,14 @@
4 #endif /* !ONLY_SHAPED_WINDOW */
5 for (i = 0; i < NUM_TIME_POSITIONS; i++)
6 {
7 - xPos[i] += enable12HourClock ? timePos24[i] : timePos12[i];
8 + if (enable12HourClock && (!enableYearDisplay))
9 + {
10 + xPos[i] += timePos24[i];
11 + }
12 + else
13 + {
14 + xPos[i] += timePos12[i];
15 + }
16 }
17
18 /* Open the display */
19 --- wmclock.c-orig 2000-03-08 08:31:33.000000000 +0100
20 +++ wmclock.c 2007-10-03 22:42:36.000000000 +0200
21 @@ -470,11 +470,11 @@
22 XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
23 digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
24 xPos[DIGIT_1_X_POS], yPos[DIGIT_Y_POS]);
25 - digitXOffset = LED_NUM_WIDTH * (year % 1000);
26 + digitXOffset = LED_NUM_WIDTH * (year % 1000 / 100);
27 XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
28 digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
29 xPos[DIGIT_2_X_POS], yPos[DIGIT_Y_POS]);
30 - digitXOffset = LED_NUM_WIDTH * (year % 100);
31 + digitXOffset = LED_NUM_WIDTH * (year % 100 / 10);
32 XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
33 digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
34 xPos[DIGIT_3_X_POS], yPos[DIGIT_Y_POS]);
|