Skip to content
Snippets Groups Projects
Unverified Commit 34583bdf authored by Sébastien Blin's avatar Sébastien Blin
Browse files

mixer: center participants in the last grid's line

Change-Id: I667c4dc805a74f8997dbe420f4101bf8d94f22c5
parent 4ce478c4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment