demo: move fpsgraph/hud to another pile when hidden #1402

pull/1403/head
nick black 3 years ago
parent 7dfb366cbc
commit 04a7736112
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -196,8 +196,9 @@ hud_toggle(struct notcurses* nc){
}
hud_hidden = !hud_hidden;
if(hud_hidden){
ncplane_move_bottom(hud);
ncplane_reparent(hud, hud);
}else{
ncplane_reparent(hud, notcurses_stdplane(nc));
ncplane_move_top(hud);
}
demo_render(nc);
@ -211,8 +212,9 @@ fpsplot_toggle(struct notcurses* nc){
}
plot_hidden = !plot_hidden;
if(plot_hidden){
ncplane_move_bottom(ncuplot_plane(plot));
ncplane_reparent(ncuplot_plane(plot), ncuplot_plane(plot));
}else{
ncplane_reparent(ncuplot_plane(plot), notcurses_stdplane(nc));
ncplane_move_top(ncuplot_plane(plot));
}
return demo_render(nc);

Loading…
Cancel
Save