mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
HUD: always display a close button in upper right
This commit is contained in:
parent
80e449cf79
commit
cdcc275e07
@ -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…
Reference in New Issue
Block a user