From 5a05b09713a9148fa54f10cebd863db26dec4852 Mon Sep 17 00:00:00 2001 From: 0xf8 <0xf8.dev@proton.me> Date: Sat, 25 Feb 2023 12:06:53 -0500 Subject: [PATCH] Update 0.2 Signed-off-by: 0xf8 <0xf8.dev@proton.me> --- src/main.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main.c b/src/main.c index bcc89c7..5678a9c 100644 --- a/src/main.c +++ b/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();