diff --git a/rem/vidmix/vidmix.c b/rem/vidmix/vidmix.c index 4eeb4e5d0..7aae7f5dc 100644 --- a/rem/vidmix/vidmix.c +++ b/rem/vidmix/vidmix.c @@ -89,7 +89,7 @@ static void source_destructor(void *arg) static inline void source_mix(struct vidframe *mframe, - const struct vidframe *frame_src, + struct vidframe *frame_src, unsigned n, unsigned rows, unsigned idx, bool focus, bool focus_this, bool focus_full) { @@ -132,6 +132,14 @@ static inline void source_mix(struct vidframe *mframe, source_mix_full(mframe, frame_src); return; } + else if (rows == 2) { + rect.w = mframe->size.w / 2; + rect.h = mframe->size.h; + rect.x = (rect.w) * (idx % 2); + rect.y = 0; + vidconv_center(mframe, frame_src, &rect); + return; + } else { rect.w = mframe->size.w / rows; rect.h = mframe->size.h / rows;