[Lcdproc] chrono alignment patch
Eric Pooch
epooch@cox.net
Sat Mar 3 23:53:01 2007
--Apple-Mail-6--762302776
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
Fixes a bug in the alignment of the Time screen. Looks like this was
just a minor oversight.
--Apple-Mail-6--762302776
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name=chrono_alignment.patch
Content-Disposition: attachment;
filename=chrono_alignment.patch
--- ../../../lcdproc-CVS-current-20070203/clients/lcdproc/chrono.c 2006-10-16 00:00:32.000000000 -0700
+++ chrono.c 2007-03-03 15:34:48.000000000 -0800
@@ -115,7 +115,7 @@
xoffs = (lcd_wid > strlen(tmp)) ? ((lcd_wid - strlen(tmp)) / 2) + 1 : 1;
if (display)
- sock_printf(sock, "widget_set T one 1 2 {%s}\n", tmp);
+ sock_printf(sock, "widget_set T one %i 2 {%s}\n", xoffs, tmp);
// display the date
xoffs = (lcd_wid > strlen(today)) ? ((lcd_wid - strlen(today)) / 2) + 1 : 1;
--Apple-Mail-6--762302776--