summaryrefslogtreecommitdiff
path: root/x11-clocks/mouseclock/files/patch-01
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 16:36:06 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 16:36:06 +0000
commit0ce9c970cf1f04781b118a59f97f3eb1664b66e8 (patch)
treef7a394b0aac405fa51a73c089493e2d03e9df09a /x11-clocks/mouseclock/files/patch-01
parent- Fix the implicit requirement lines of the pkg-config files to use libav's (diff)
Rename x11-*/ patch-xy patches to reflect the files they modify.
Finally, this is the last of it.
Notes
Notes: svn path=/head/; revision=363358
Diffstat (limited to 'x11-clocks/mouseclock/files/patch-01')
-rw-r--r--x11-clocks/mouseclock/files/patch-0139
1 files changed, 0 insertions, 39 deletions
diff --git a/x11-clocks/mouseclock/files/patch-01 b/x11-clocks/mouseclock/files/patch-01
deleted file mode 100644
index 00b230a5ac00..000000000000
--- a/x11-clocks/mouseclock/files/patch-01
+++ /dev/null
@@ -1,39 +0,0 @@
---- mouseclock.c.orig Sun May 5 09:47:18 1996
-+++ mouseclock.c Mon Oct 6 23:09:43 1997
-@@ -31,6 +31,7 @@
- Window Root;
- int shadow_size = 2;
- int shadow_mode = 1;
-+int ampm = 0;
-
- /* ---------------------------------------------------------------- */
- void
-@@ -56,6 +57,7 @@
- printf ("-display <dpy> display name\n");
- printf ("-fg <color> foreground color\n");
- printf ("-fn <font_name> font to use\n");
-+ printf ("-12hr use 12-hour format\n");
-
- exit (1);
- }
-@@ -266,6 +268,11 @@
- shadow_mode = 0;
- continue;
- }
-+ if (!strcmp ("-12hr", argv[i]))
-+ {
-+ ampm = 1;
-+ continue;
-+ }
- usage (argv[0]);
- }
-
-@@ -295,7 +302,7 @@
- struct tm *now_tm = localtime (&now);
- Cursor cur;
-
-- h = now_tm->tm_hour;
-+ h = ampm && (now_tm->tm_hour - 12 > 0) ? now_tm->tm_hour - 12 : now_tm->tm_hour;
- m = now_tm->tm_min;
-
- if (h != last_h || m != last_m)