From 1f0edcb60f6027193739cf1a2331f86115910564 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 18 Apr 2021 03:11:41 -0400 Subject: [PATCH] demo: always move hud/fps off-pile to hide #1552 --- src/demo/hud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/demo/hud.c b/src/demo/hud.c index 63f4f876d..aefd77660 100644 --- a/src/demo/hud.c +++ b/src/demo/hud.c @@ -420,7 +420,7 @@ struct ncplane* hud_create(struct notcurses* nc){ ncplane_set_bg_rgb(n, 0); ncplane_set_bg_alpha(n, CELL_ALPHA_BLEND); if(hud_hidden){ - ncplane_move_bottom(n); + ncplane_reparent(n, n); } return (hud = n); } @@ -665,7 +665,7 @@ int fpsgraph_init(struct notcurses* nc){ clock_gettime(CLOCK_MONOTONIC, &ts); plottimestart = timespec_to_ns(&ts); if(plot_hidden){ - ncplane_move_bottom(newp); + ncplane_reparent(ncuplot_plane(plot), ncuplot_plane(plot)); } return 0; }