mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
use non-interpolative scaling with eagle/luigi
This commit is contained in:
parent
f339855c39
commit
4bb85d28c8
@ -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)){
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user