mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
ncreel: don't always call redraw
This commit is contained in:
parent
8bbd134504
commit
d2cfce04c7
@ -142,6 +142,9 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
|
|||||||
auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t));
|
auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t));
|
||||||
tctx->addLine();
|
tctx->addLine();
|
||||||
}
|
}
|
||||||
|
if(ncreel_redraw(nr)){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}case '-':{
|
}case '-':{
|
||||||
auto t = ncreel_focused(nr);
|
auto t = ncreel_focused(nr);
|
||||||
@ -149,6 +152,9 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
|
|||||||
auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t));
|
auto tctx = static_cast<TabletCtx*>(nctablet_userptr(t));
|
||||||
tctx->subLine();
|
tctx->subLine();
|
||||||
}
|
}
|
||||||
|
if(ncreel_redraw(nr)){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}case '*':
|
}case '*':
|
||||||
notcurses_debug(nc, stderr);
|
notcurses_debug(nc, stderr);
|
||||||
@ -170,9 +176,6 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(ncreel_redraw(nr)){
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if(notcurses_render(nc)){
|
if(notcurses_render(nc)){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user