mixer: center participants in the last grid's line

Change-Id: I667c4dc805a74f8997dbe420f4101bf8d94f22c5
parent 4ce478c4
......@@ -321,6 +321,11 @@ VideoMixer::render_frame(VideoFrame& output,
}
} else {
xoff = (index % zoom) * cell_width;
if (currentLayout_ == Layout::GRID && n % zoom != 0
&& index >= (zoom * ((n - 1) / zoom))) {
// Last line, center participants if not full
xoff += (width_ - (n % zoom) * cell_width) / 2;
}
yoff = (index / zoom) * cell_height;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment