use non-interpolative scaling with eagle/luigi

This commit is contained in:
nick black 2021-07-07 02:00:13 -04:00
parent f339855c39
commit 4bb85d28c8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ zoom_map(struct notcurses* nc, const char* map, int* ret){
struct ncvisual_options vopts = {
.y = 1,
.blitter = NCBLIT_2x2,
.flags = NCVISUAL_OPTION_NOINTERPOLATE,
};
if(ncvisual_blitter_geom(nc, ncv, &vopts, &vheight, &vwidth,
&yscale, &xscale, NULL)){

View File

@ -156,6 +156,7 @@ int luigi_demo(struct notcurses* nc){
struct ncvisual_options vopts = {
.n = notcurses_stddim_yx(nc, &rows, &cols),
.scaling = NCSCALE_STRETCH,
.flags = NCVISUAL_OPTION_NOINTERPOLATE,
};
if(ncvisual_render(nc, nv, &vopts) == NULL){
return -1;