Skip to content

Commit

Permalink
notcurses-info: display logo at the end for proper positioning #1883
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jul 18, 2021
1 parent ca284f9 commit 8db6e3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/info/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ display_logo(const tinfo* ti, struct ncplane* n, const char* path){
ncplane_cursor_yx(n, &y, NULL);
struct ncvisual_options vopts = {
.n = n,
.y = y - 4,
.y = y - 3,
.x = 48,
.blitter = NCBLIT_PIXEL,
.flags = NCVISUAL_OPTION_CHILDPLANE,
Expand Down Expand Up @@ -340,11 +340,6 @@ tinfo_debug_bitmaps(struct ncplane* n, const tinfo* ti, const char* indent){
}else{
ncplane_printf(n, "%srgba pixel animation support\n", indent);
}
char* path = prefix_data("notcurses.png");
if(path){
display_logo(ti, n, path);
free(path);
}
}
/*
ncplane_putstr(n, "\U0001F918");
Expand Down Expand Up @@ -429,6 +424,11 @@ int main(int argc, const char** argv){
tinfo_debug_styles(nc, stdn, indent);
tinfo_debug_bitmaps(stdn, &nc->tcache, indent);
unicodedumper(stdn, &nc->tcache, indent);
char* path = prefix_data("notcurses.png");
if(path){
display_logo(&nc->tcache, stdn, path);
free(path);
}
if(notcurses_render(nc)){
notcurses_stop(nc);
return EXIT_FAILURE;
Expand Down

0 comments on commit 8db6e3a

Please sign in to comment.