From fea6b51bdf800c5f68b7a49a2eae501c8a240ff7 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 27 Mar 2021 02:34:15 -0400 Subject: [PATCH] xray: horizontally center video --- src/demo/xray.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/demo/xray.c b/src/demo/xray.c index 1797788a4..a964b5933 100644 --- a/src/demo/xray.c +++ b/src/demo/xray.c @@ -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