adding decimal dot to minidigit
This commit is contained in:
parent
7d94a9cdd7
commit
ca420bc745
@ -47,7 +47,8 @@ static char L9[] = "XXXX_XXXX__XXXX";
|
|||||||
|
|
||||||
static char Lsp[] = "_______________"; /* space */
|
static char Lsp[] = "_______________"; /* space */
|
||||||
static char Lmo[] = "______XXX______"; /* moins */
|
static char Lmo[] = "______XXX______"; /* moins */
|
||||||
static char Lco[] = "____X_____X____";
|
static char Lco[] = "____X_____X____"; /* colomn */
|
||||||
|
static char Ldp[] = "_____________X_"; /* decimal dot */
|
||||||
|
|
||||||
char *cptr;
|
char *cptr;
|
||||||
int l, c;
|
int l, c;
|
||||||
@ -68,6 +69,7 @@ switch (digit) {
|
|||||||
case ' ': cptr = Lsp; break;
|
case ' ': cptr = Lsp; break;
|
||||||
case '-': cptr = Lmo; break;
|
case '-': cptr = Lmo; break;
|
||||||
case ':': cptr = Lco; break;
|
case ':': cptr = Lco; break;
|
||||||
|
case '.': cptr = Ldp; break;
|
||||||
|
|
||||||
default: cptr = LX; break;
|
default: cptr = LX; break;
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ for (loop=0; loop<nbl; loop++) {
|
|||||||
|
|
||||||
temps = time(NULL);
|
temps = time(NULL);
|
||||||
p_tms = localtime(&temps);
|
p_tms = localtime(&temps);
|
||||||
(void)strftime(chaine, 100, "%H:%M", p_tms);
|
(void)strftime(chaine, 100, "%H.%M", p_tms);
|
||||||
for (foo=0; foo<strlen(chaine); foo++) {
|
for (foo=0; foo<strlen(chaine); foo++) {
|
||||||
minidigit_0(stdscr, 15, 8+foo*8, chaine[foo], 0);
|
minidigit_0(stdscr, 15, 8+foo*8, chaine[foo], 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user