From f953d18cfb91dc20722e6a6ce85844ba773e9af9 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 17 Jan 2020 05:19:01 -0500 Subject: [PATCH] HUD: move to lower left --- src/demo/hud.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/demo/hud.c b/src/demo/hud.c index 7f9fe476d..6f26ee804 100644 --- a/src/demo/hud.c +++ b/src/demo/hud.c @@ -59,10 +59,8 @@ hud_grabbed_bg(struct ncplane* n){ struct ncplane* hud_create(struct notcurses* nc){ int dimx, dimy; notcurses_term_dim_yx(nc, &dimy, &dimx); - int xoffset = (dimx - HUD_COLS) / 2; - //int yoffset = (dimy - HUD_ROWS); - int yoffset = 0; - struct ncplane* n = ncplane_new(nc, HUD_ROWS, HUD_COLS, yoffset, xoffset, NULL); + int yoffset = dimy - HUD_ROWS - 1; + struct ncplane* n = ncplane_new(nc, HUD_ROWS, HUD_COLS, yoffset, 1, NULL); if(n == NULL){ return NULL; }