Update 0.2
Signed-off-by: 0xf8 <0xf8.dev@proton.me>
This commit is contained in:
parent
2bb0d405b8
commit
5a05b09713
19
src/main.c
19
src/main.c
@ -167,25 +167,28 @@ int main(int argc, char **argv) {
|
||||
|
||||
int sec = lc->tm_sec;
|
||||
|
||||
struct bignumber_t *bn_houru = bignumber(00, 0, houru);
|
||||
struct bignumber_t *bn_hourl = bignumber(15, 1, hourl);
|
||||
struct bignumber_t *bn_minu = bignumber(30, 2, minu);
|
||||
struct bignumber_t *bn_minl = bignumber(45, 3, minl);
|
||||
|
||||
ncplane_erase(notcurses_stdplane(nc));
|
||||
|
||||
ncplane_set_fg_rgb(notcurses_stdplane(nc), 0x777777);
|
||||
|
||||
ncplane_putchar_yx(notcurses_stdplane(nc), midr - 1, midc, '|');
|
||||
ncplane_putchar_yx(notcurses_stdplane(nc), midr + 0, midc, '|');
|
||||
ncplane_putchar_yx(notcurses_stdplane(nc), midr + 1, midc, '|');
|
||||
|
||||
struct bignumber_t *bn_houru = bignumber(00, 0, houru);
|
||||
drawbignumber(bn_houru, sec, midc - 20, midr - 2, notcurses_stdplane(nc));
|
||||
drawbignumber(bn_hourl, sec, midc - 10, midr - 2, notcurses_stdplane(nc));
|
||||
drawbignumber(bn_minu, sec, midc + 3, midr - 2, notcurses_stdplane(nc));
|
||||
drawbignumber(bn_minl, sec, midc + 13, midr - 2, notcurses_stdplane(nc));
|
||||
free(bn_houru);
|
||||
|
||||
struct bignumber_t *bn_hourl = bignumber(15, 1, hourl);
|
||||
drawbignumber(bn_hourl, sec, midc - 10, midr - 2, notcurses_stdplane(nc));
|
||||
free(bn_hourl);
|
||||
|
||||
struct bignumber_t *bn_minu = bignumber(30, 2, minu);
|
||||
drawbignumber(bn_minu, sec, midc + 3, midr - 2, notcurses_stdplane(nc));
|
||||
free(bn_minu);
|
||||
|
||||
struct bignumber_t *bn_minl = bignumber(45, 3, minl);
|
||||
drawbignumber(bn_minl, sec, midc + 13, midr - 2, notcurses_stdplane(nc));
|
||||
free(bn_minl);
|
||||
|
||||
refresh();
|
||||
|
Loading…
Reference in New Issue
Block a user