HUD: always display a close button in upper right

This commit is contained in:
nick black 2020-02-07 09:53:19 -05:00
parent 80e449cf79
commit cdcc275e07
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ int highcontrast_demo(struct notcurses* nc){
// right. start at the upper left, from the logical beginning of the array.
cell c = CELL_TRIVIAL_INITIALIZER;
cell_set_fg_alpha(&c, CELL_ALPHA_HIGHCONTRAST);
const char motto[] = "high contrast text ";
const char motto[] = " high contrast text ";
do{
unsigned idx = iter % totcells; // first color for upper-left
for(int yx = 0 ; yx < dimy * dimx ; ++yx){

View File

@ -181,7 +181,7 @@ int hud_schedule(const char* demoname){
cure = malloc(sizeof(*cure));
}
elem* e = elems;
int plen = HUD_COLS - 4 - NSLEN;
int plen = HUD_COLS - 10 - NSLEN;
while(e){
hook = &e->next;
if(ncplane_printf_yx(hud, line, 0, "%-6d %*ju.%02jus %-*.*s", e->frames,