diff --git a/src/demo/demo.c b/src/demo/demo.c index ca30f99c7..dd5767078 100644 --- a/src/demo/demo.c +++ b/src/demo/demo.c @@ -44,6 +44,7 @@ outro(struct notcurses* nc){ return -1; } int rows, cols; + ncplane_erase(ncp); ncplane_dim_yx(ncp, &rows, &cols); int averr = 0; struct ncvisual* ncv = ncplane_visual_open(ncp, "../tests/changes.jpg", &averr); @@ -61,7 +62,7 @@ outro(struct notcurses* nc){ const char str0[] = " ATL, baby! ATL! "; const char str1[] = " much, much more is coming "; const char str2[] = " hack on 💖 dank "; - int ybase = rows - 6; + int ybase = rows - 5; if(ncplane_fg_rgb8(ncp, 0, 0, 0)){ return -1; } diff --git a/src/demo/panelreel.c b/src/demo/panelreel.c index 9cdf915f1..7ab6c5534 100644 --- a/src/demo/panelreel.c +++ b/src/demo/panelreel.c @@ -338,7 +338,6 @@ int panelreel_demo(struct notcurses* nc){ close(efd); return -1; } - /*fadeout(w, FADE_MILLISECONDS);*/ while(tctxs){ kill_tablet(&tctxs); } @@ -348,5 +347,8 @@ int panelreel_demo(struct notcurses* nc){ return -1; } close(efd); + if(notcurses_render(nc)){ + return -1; + } return 0; } diff --git a/src/lib/panelreel.c b/src/lib/panelreel.c index edaf3cbb0..cffcf9188 100644 --- a/src/lib/panelreel.c +++ b/src/lib/panelreel.c @@ -722,6 +722,7 @@ int panelreel_destroy(panelreel* preel){ panelreel_del(preel, t); t = tmp; } + ncplane_destroy(preel->p); free(preel); } return ret;