HUD: always display a close button in upper right

pull/331/head
nick black 4 years ago
parent 80e449cf79
commit cdcc275e07
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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){

@ -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,

Loading…
Cancel
Save