mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
HUD: move to lower left
This commit is contained in:
parent
7cdfe979f0
commit
f953d18cfb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user