From d5626e64aad840da230a4c1a4c9b03c1d889eba2 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 16 Oct 2021 01:41:56 -0400 Subject: [PATCH] xray/grid: ncvisual_blit() #1462 --- src/demo/xray.c | 2 +- src/poc/grid.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/demo/xray.c b/src/demo/xray.c index 63d07bbc6..eca6ce626 100644 --- a/src/demo/xray.c +++ b/src/demo/xray.c @@ -101,7 +101,7 @@ get_next_frame(struct ncvisual* ncv, struct ncvisual_options* vopts){ ret = marsh.next_frame++; if(ncvisual_decode(ncv)){ ret = -1; - }else if(ncvisual_render(marsh.nc, ncv, vopts) == NULL){ + }else if(ncvisual_blit(marsh.nc, ncv, vopts) == NULL){ ret = -1; } pthread_mutex_unlock(&lock); diff --git a/src/poc/grid.c b/src/poc/grid.c index 16d8841eb..a46869bdd 100644 --- a/src/poc/grid.c +++ b/src/poc/grid.c @@ -67,10 +67,11 @@ int main(void){ return EXIT_FAILURE; } struct ncvisual_options vopts = { + .n = stdn, .blitter = NCBLIT_PIXEL, - .flags = NCVISUAL_OPTION_NODEGRADE, + .flags = NCVISUAL_OPTION_NODEGRADE | NCVISUAL_OPTION_CHILDPLANE, }; - struct ncplane* bitn = ncvisual_render(nc, ncv, &vopts); + struct ncplane* bitn = ncvisual_blit(nc, ncv, &vopts); ncvisual_destroy(ncv); if(bitn == NULL){ notcurses_stop(nc);