From d50ee9ec50f0519d6474e6fe2b385e2e158c4231 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 22 Dec 2019 01:18:49 -0500 Subject: [PATCH] ncplane_erase() at the beginning of viewdemo #194 --- src/demo/bleachworm.c | 2 +- src/demo/view.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/demo/bleachworm.c b/src/demo/bleachworm.c index e54e1a271..d1c3ca24f 100644 --- a/src/demo/bleachworm.c +++ b/src/demo/bleachworm.c @@ -549,7 +549,7 @@ int bleachworm_demo(struct notcurses* nc){ cell c; struct timespec screenend; clock_gettime(CLOCK_MONOTONIC, &screenend); - ns_to_timespec(timespec_to_ns(&screenend) + 2 * timespec_to_ns(&demodelay), &screenend); + ns_to_timespec(timespec_to_ns(&screenend) + 5 * timespec_to_ns(&demodelay), &screenend); do{ // (re)draw a screen const int start = starts[i]; int step = steps[i]; diff --git a/src/demo/view.c b/src/demo/view.c index 73edb242e..db9131d39 100644 --- a/src/demo/view.c +++ b/src/demo/view.c @@ -70,6 +70,7 @@ int view_demo(struct notcurses* nc){ ncplane_dim_yx(ncp, &dimy, &dimx); int averr = 0; char* pic = find_data("PurpleDrank.jpg"); + ncplane_erase(ncp); struct ncvisual* ncv = ncplane_visual_open(ncp, pic, &averr); if(ncv == NULL){ free(pic);