mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
ncplane_erase() at the beginning of viewdemo #194
This commit is contained in:
parent
c3fa7ea664
commit
d50ee9ec50
@ -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];
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user