From 1a16d34b5c37735f6d4fef188b7f01e48a4f72f1 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 24 Apr 2021 07:38:44 -0400 Subject: [PATCH] view: move pic-in-pic to row 1 from top #1577 --- src/demo/view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/demo/view.c b/src/demo/view.c index 9aebe2e79..de6d2ab47 100644 --- a/src/demo/view.c +++ b/src/demo/view.c @@ -11,11 +11,11 @@ streamer(struct ncvisual* ncv, struct ncvisual_options* vopts, if(vpip){ if(!marsh.pipopts.n){ struct ncplane_options nopts = { - .y = NCALIGN_TOP, + .y = 1, .x = NCALIGN_RIGHT, .rows = 12, .cols = 18, - .flags = NCPLANE_OPTION_HORALIGNED | NCPLANE_OPTION_VERALIGNED, + .flags = NCPLANE_OPTION_HORALIGNED, .name = "pip", }; marsh.pipopts.n = ncplane_create(vopts->n, &nopts); @@ -50,7 +50,7 @@ view_video_demo(struct notcurses* nc){ .y = 1, }; void* pip = NULL; - if(notcurses_check_pixel_support(nc)){ + if(notcurses_check_pixel_support(nc) > 0){ pip = nc; } int ret = ncvisual_stream(nc, ncv, 0.5 * delaymultiplier,