xray: horizontally center video

pull/1473/head
nick black 3 years ago
parent a9d9093e22
commit fea6b51bdf
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -106,10 +106,11 @@ int xray_demo(struct notcurses* nc){
struct ncvisual_options vopts = {
.n = n,
.y = NCALIGN_CENTER,
.x = NCALIGN_CENTER,
.scaling = NCSCALE_SCALE_HIRES,
.blitter = NCBLIT_PIXEL,
.flags = NCVISUAL_OPTION_NODEGRADE // to test for NCBLIT_PIXEL
| NCVISUAL_OPTION_VERALIGNED,
| NCVISUAL_OPTION_VERALIGNED | NCVISUAL_OPTION_HORALIGNED,
};
float dm = 0;
// returns 0 if the selected blitter isn't available

Loading…
Cancel
Save