reel poc: print error on redraw fail #1036

pull/1042/head
nick black 4 years ago
parent 270b1b20ee
commit 1eff105cb9
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -40,7 +40,7 @@ class TabletCtx {
inline static int class_idx = 0;
};
int tabletfxn(struct nctablet* _t, bool cliptop __attribute__ ((unused))){
int tabletfxn(struct nctablet* _t, bool cliptop){
NcTablet *t = NcTablet::map_tablet (_t);
Plane* p = t->get_plane();
auto tctx = t->get_userptr<TabletCtx>();
@ -146,6 +146,7 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
tctx->addLine();
}
if(ncreel_redraw(nr)){
fprintf(stderr, "Error redrawing reel\n");
return -1;
}
break;
@ -156,6 +157,7 @@ int runreels(struct notcurses* nc, struct ncplane* n, ncreel_options* nopts){
tctx->subLine();
}
if(ncreel_redraw(nr)){
fprintf(stderr, "Error redrawing reel\n");
return -1;
}
break;

Loading…
Cancel
Save