mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
notcurses-demo: remove stray notcurses_refresh() calls
This commit is contained in:
parent
5a081a014d
commit
531f62a5ae
@ -13,10 +13,10 @@ chunli_draw(struct notcurses* nc, const char* ext, int count, const nccell* b){
|
||||
chunli chuns[CHUNS];
|
||||
char file[20];
|
||||
int dimx, dimy;
|
||||
ncplane_dim_yx(notcurses_stdplane_const(nc), &dimy, &dimx);
|
||||
struct timespec iterdelay;
|
||||
timespec_div(&demodelay, 10, &iterdelay);
|
||||
for(int i = 0 ; i < count ; ++i){
|
||||
notcurses_refresh(nc, &dimy, &dimx);
|
||||
snprintf(file, sizeof(file), "chunli%d.%s", i + 1, ext);
|
||||
chuns[i].path = find_data(file);
|
||||
chuns[i].ncv = ncvisual_from_file(chuns[i].path);
|
||||
@ -50,7 +50,7 @@ int chunli_demo(struct notcurses* nc){
|
||||
struct timespec iterdelay;
|
||||
timespec_div(&demodelay, 10, &iterdelay);
|
||||
int ret, dimx, dimy;
|
||||
notcurses_refresh(nc, &dimy, &dimx);
|
||||
ncplane_dim_yx(notcurses_stdplane_const(nc), &dimy, &dimx);
|
||||
nccell b = CELL_TRIVIAL_INITIALIZER;
|
||||
nccell_set_fg_alpha(&b, NCALPHA_TRANSPARENT);
|
||||
nccell_set_bg_alpha(&b, NCALPHA_TRANSPARENT);
|
||||
|
@ -591,7 +591,6 @@ int witherworm_demo(struct notcurses* nc){
|
||||
DEMO_RENDER(nc);
|
||||
}
|
||||
}while(key == NCKEY_RESIZE);
|
||||
notcurses_refresh(nc, NULL, NULL);
|
||||
}
|
||||
ncplane_set_scrolling(n, false);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user