From bad0ea912792b0e7596ef0db085755045c42a21f Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 17 May 2020 10:13:14 -0400 Subject: [PATCH] normal demo: reset underlying plane --- src/demo/normal.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/demo/normal.c b/src/demo/normal.c index f8492ffce..e2a096a6a 100644 --- a/src/demo/normal.c +++ b/src/demo/normal.c @@ -81,6 +81,12 @@ int normal_demo(struct notcurses* nc){ if(n == NULL){ return -1; } + ncplane_erase(nstd); + cell c = CELL_SIMPLE_INITIALIZER(' '); + cell_set_fg_rgb(&c, 0xff, 0xff, 0xff); + cell_set_bg_rgb(&c, 0xff, 0xff, 0xff); + ncplane_polyfill_yx(nstd, 0, 0, &c); + cell_release(nstd, &c); for(int i = 0 ; i < 16 ; ++i){ demo_nanosleep(nc, &scaled); if(ncplane_rotate_cw(n)){