notcurses_resize(): fix bug, reclaim 10% perf loss

pull/456/head
nick black 5 years ago
parent a7e6e83711
commit 3649cd1a92
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -28,7 +28,7 @@ int notcurses_resize(notcurses* n, int* restrict rows, int* restrict cols){
if(*cols <= 0){
*cols = 1;
}
if(*rows != n->lfdimy || *rows != n->lfdimx){
if(*rows != n->lfdimy || *cols != n->lfdimx){
n->lfdimy = *rows;
n->lfdimx = *cols;
const size_t size = sizeof(*n->lastframe) * (n->lfdimy * n->lfdimx);

Loading…
Cancel
Save