whiteout: restore original scrolling mode for standard plane

pull/1965/head
nick black 3 years ago
parent 30d71ab6b9
commit 962a7539b4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -455,6 +455,7 @@ int witherworm_demo(struct notcurses* nc){
size_t i;
const size_t screens = sizeof(steps) / sizeof(*steps);
struct ncplane* n = notcurses_stdplane(nc);
bool initial_scroll = ncplane_scrolling_p(n);
ncplane_set_scrolling(n, true);
ncplane_erase(n);
for(i = 0 ; i < screens ; ++i){
@ -594,6 +595,6 @@ int witherworm_demo(struct notcurses* nc){
}
}while(key == NCKEY_RESIZE);
}
ncplane_set_scrolling(n, false);
ncplane_set_scrolling(n, initial_scroll);
return 0;
}

Loading…
Cancel
Save