From f9c8102e3771c1b91cc4a1982217f0cb5b94e910 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 9 Jul 2021 04:27:21 -0400 Subject: [PATCH] notcurses-info: use NCOPTION_NO_CLEAR_BITMAPS --- src/info/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/info/main.c b/src/info/main.c index c503c0a11..1dda5424e 100644 --- a/src/info/main.c +++ b/src/info/main.c @@ -205,10 +205,10 @@ display_logo(const tinfo* ti, struct ncplane* n, const char* path){ return -1; } int y; - ncplane_yx(n, &y, NULL); + ncplane_cursor_yx(n, &y, NULL); struct ncvisual_options vopts = { .n = n, - .y = y + 7, + .y = y - 4, .x = 48, .blitter = NCBLIT_PIXEL, .flags = NCVISUAL_OPTION_CHILDPLANE, @@ -301,7 +301,9 @@ usage(const char* base, FILE* fp, int ret){ // notcurses_render() without the alternate screen, no? int main(int argc, const char** argv){ notcurses_options nopts = { - .flags = NCOPTION_NO_ALTERNATE_SCREEN | NCOPTION_PRESERVE_CURSOR, + .flags = NCOPTION_NO_ALTERNATE_SCREEN + | NCOPTION_PRESERVE_CURSOR + | NCOPTION_NO_CLEAR_BITMAPS, .loglevel = NCLOGLEVEL_WARNING, }; if(argc > 2){