fixed issue 71 time format
git-svn-id: http://tint2.googlecode.com/svn/trunk@82 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
2c80522212
commit
dee9b62866
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
2009-05-31
|
||||
- fixed issue 71 : time format %T %r
|
||||
|
||||
2009-05-31
|
||||
- fixed issue 86 : padding bug
|
||||
|
||||
|
|
|
@ -58,8 +58,10 @@ void init_clock()
|
|||
|
||||
if (!clock->area.on_screen) continue;
|
||||
|
||||
if (strchr(time1_format, 'S') == NULL) time_precision = 60;
|
||||
else time_precision = 1;
|
||||
if (strchr(time1_format, 'S')) time_precision = 1;
|
||||
else if (strchr(time1_format, 'T')) time_precision = 1;
|
||||
else if (strchr(time1_format, 'r')) time_precision = 1;
|
||||
else time_precision = 60;
|
||||
|
||||
// update clock to force update (-time_precision)
|
||||
struct timeval stv;
|
||||
|
|
BIN
src/tint2
BIN
src/tint2
Binary file not shown.
Loading…
Reference in a new issue