From ead615d970c18c44b879ea27f6a4489d70927eb0 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 5 Oct 2021 00:52:36 -0400 Subject: [PATCH] [demo] handle fps graph as family in case it's pixel #2235 --- src/demo/hud.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/demo/hud.c b/src/demo/hud.c index b7969b1d2..1200d0dae 100644 --- a/src/demo/hud.c +++ b/src/demo/hud.c @@ -227,10 +227,10 @@ fpsplot_toggle(struct notcurses* nc){ } plot_hidden = !plot_hidden; if(plot_hidden){ - ncplane_reparent(ncuplot_plane(plot), ncuplot_plane(plot)); + ncplane_reparent_family(ncuplot_plane(plot), ncuplot_plane(plot)); }else{ - ncplane_reparent(ncuplot_plane(plot), notcurses_stdplane(nc)); - ncplane_move_top(ncuplot_plane(plot)); + ncplane_reparent_family(ncuplot_plane(plot), notcurses_stdplane(nc)); + ncplane_move_family_top(ncuplot_plane(plot)); } return demo_render(nc); } @@ -680,7 +680,7 @@ int fpsgraph_init(struct notcurses* nc){ clock_gettime(CLOCK_MONOTONIC, &ts); plottimestart = timespec_to_ns(&ts); if(plot_hidden){ - ncplane_reparent(ncuplot_plane(plot), ncuplot_plane(plot)); + ncplane_reparent_family(ncuplot_plane(plot), ncuplot_plane(plot)); } return 0; }