diff --git a/data/freebsd.png b/data/freebsd.png new file mode 100644 index 000000000..0f30aa26c Binary files /dev/null and b/data/freebsd.png differ diff --git a/src/fetch/main.c b/src/fetch/main.c index 44276f77a..3bb4c701d 100644 --- a/src/fetch/main.c +++ b/src/fetch/main.c @@ -23,8 +23,28 @@ #endif #include #include "compat/compat.h" +#include "builddef.h" #include "ncart.h" +static inline const char* +path_separator(void){ +#ifdef __MINGW64__ + return "\\"; +#else + return "/"; +#endif +} + +static inline char* +find_data(const char* datum){ + const char* datadir = NOTCURSES_SHARE; + char* path = malloc(strlen(datadir) + 1 + strlen(datum) + 1); + strcpy(path, datadir); + strcat(path, path_separator()); + strcat(path, datum); + return path; +} + typedef struct distro_info { const char* name; // must match 'lsb_release -i' const char* logofile; // kept at original aspect ratio, lain atop bg @@ -405,7 +425,7 @@ static const distro_info* freebsd_ncneofetch(fetched_info* fi){ static const distro_info fbsd = { .name = "FreeBSD", - .logofile = NULL, // FIXME + .logofile = "freebsd.png", }; fi->neologo = get_neofetch_art("BSD"); // use big daemon logo fi->distro_pretty = NULL; diff --git a/src/lib/render.c b/src/lib/render.c index 4c8fee5da..0c84c8699 100644 --- a/src/lib/render.c +++ b/src/lib/render.c @@ -1256,6 +1256,7 @@ rasterize_core(notcurses* nc, const ncpile* p, fbuf* f, unsigned phase){ } //fprintf(stderr, "damageidx: %ld\n", damageidx); } + // shouldn't this happen only if the linefeed was on the last line? FIXME if(saw_linefeed){ nc->rstate.logendx = 0; }