|
|
|
@ -65,9 +65,7 @@ perframecb(struct ncvisual* ncv, struct ncvisual_options* vopts,
|
|
|
|
|
// only need these two steps done once, but we can't do them in
|
|
|
|
|
// main() due to the plane being created in ncvisual_stream() =[
|
|
|
|
|
ncplane_set_resizecb(vopts->n, ncplane_resize_maximize);
|
|
|
|
|
// until #1518 is done, the stream isn't transparent, and thus it
|
|
|
|
|
// can obstruct the slider if there are few enough rows. FIXME
|
|
|
|
|
ncplane_move_above(vnewplane, vopts->n);
|
|
|
|
|
ncplane_move_above(vopts->n, vnewplane);
|
|
|
|
|
|
|
|
|
|
struct notcurses* nc = ncplane_notcurses(vopts->n);
|
|
|
|
|
static int frameno = 0;
|
|
|
|
@ -106,7 +104,9 @@ int xray_demo(struct notcurses* nc){
|
|
|
|
|
.scaling = NCSCALE_SCALE_HIRES,
|
|
|
|
|
.blitter = NCBLIT_PIXEL,
|
|
|
|
|
.flags = NCVISUAL_OPTION_NODEGRADE // to test for NCBLIT_PIXEL
|
|
|
|
|
| NCVISUAL_OPTION_VERALIGNED | NCVISUAL_OPTION_HORALIGNED,
|
|
|
|
|
| NCVISUAL_OPTION_VERALIGNED | NCVISUAL_OPTION_HORALIGNED
|
|
|
|
|
| NCVISUAL_OPTION_ADDALPHA,
|
|
|
|
|
.transcolor = 0,
|
|
|
|
|
};
|
|
|
|
|
float dm = 0;
|
|
|
|
|
// returns 0 if the selected blitter isn't available
|
|
|
|
|