remove obsolete assert from panelreels #91

pull/108/head
nick black 5 years ago
parent d8e3cc9675
commit 82c5b96f92
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -300,7 +300,7 @@ panelreel_demo_core(struct notcurses* nc, int efd, tabletctx** tctxs){
case 'a': newtablet = new_tabletctx(pr, &id); break;
case 'b': newtablet = new_tabletctx(pr, &id); break;
case 'c': newtablet = new_tabletctx(pr, &id); break;
case 'h': if(x > 0) { --x; if(panelreel_move(pr, x, y)){ ++x; } } break;
case 'h': --x; if(panelreel_move(pr, x, y)){ ++x; } break;
case 'l': ++x; if(panelreel_move(pr, x, y)){ --x; } break;
case 'k': panelreel_prev(pr); break;
case 'j': panelreel_next(pr); break;

@ -142,7 +142,6 @@ draw_panelreel_borders(const panelreel* pr){
int begx, begy;
int maxx, maxy;
window_coordinates(pr->p, &begy, &begx, &maxy, &maxx);
assert(begy >= 0 && begx >= 0);
assert(maxy >= 0 && maxx >= 0);
--maxx; // last column we can safely write to
--maxy; // last line we can safely write to

Loading…
Cancel
Save