mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[paint] stop processing line of plane on linefeed #2196
This commit is contained in:
parent
88a3d42e8f
commit
f992a55b2d
BIN
data/freebsd.png
Normal file
BIN
data/freebsd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 83 KiB |
@ -23,8 +23,28 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <notcurses/notcurses.h>
|
#include <notcurses/notcurses.h>
|
||||||
#include "compat/compat.h"
|
#include "compat/compat.h"
|
||||||
|
#include "builddef.h"
|
||||||
#include "ncart.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 {
|
typedef struct distro_info {
|
||||||
const char* name; // must match 'lsb_release -i'
|
const char* name; // must match 'lsb_release -i'
|
||||||
const char* logofile; // kept at original aspect ratio, lain atop bg
|
const char* logofile; // kept at original aspect ratio, lain atop bg
|
||||||
@ -405,7 +425,7 @@ static const distro_info*
|
|||||||
freebsd_ncneofetch(fetched_info* fi){
|
freebsd_ncneofetch(fetched_info* fi){
|
||||||
static const distro_info fbsd = {
|
static const distro_info fbsd = {
|
||||||
.name = "FreeBSD",
|
.name = "FreeBSD",
|
||||||
.logofile = NULL, // FIXME
|
.logofile = "freebsd.png",
|
||||||
};
|
};
|
||||||
fi->neologo = get_neofetch_art("BSD"); // use big daemon logo
|
fi->neologo = get_neofetch_art("BSD"); // use big daemon logo
|
||||||
fi->distro_pretty = NULL;
|
fi->distro_pretty = NULL;
|
||||||
|
@ -1256,6 +1256,7 @@ rasterize_core(notcurses* nc, const ncpile* p, fbuf* f, unsigned phase){
|
|||||||
}
|
}
|
||||||
//fprintf(stderr, "damageidx: %ld\n", damageidx);
|
//fprintf(stderr, "damageidx: %ld\n", damageidx);
|
||||||
}
|
}
|
||||||
|
// shouldn't this happen only if the linefeed was on the last line? FIXME
|
||||||
if(saw_linefeed){
|
if(saw_linefeed){
|
||||||
nc->rstate.logendx = 0;
|
nc->rstate.logendx = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user