mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
xray/grid: ncvisual_blit() #1462
This commit is contained in:
parent
367c17a7df
commit
d5626e64aa
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user