Fix many video tiles in voice chats.

This commit is contained in:
John Preston 2021-06-03 16:57:28 +04:00
parent 482ad74c57
commit 1858e7e8ac
2 changed files with 5 additions and 7 deletions

View file

@ -319,6 +319,7 @@ void Viewport::RendererGL::paint(
auto index = 0;
for (const auto &tile : _owner->_tiles) {
if (!tile->shown()) {
index++;
continue;
}
paintTile(
@ -970,14 +971,8 @@ void Viewport::RendererGL::validateDatas() {
return std::clamp(row->name().maxWidth(), 1, hasWidth) * factor;
};
for (auto i = 0; i != count; ++i) {
if (!tiles[i]->shown()) {
continue;
}
tiles[i]->row()->lazyInitialize(st::groupCallMembersListItem);
const auto width = nameWidth(i);
if (width <= 0) {
continue;
}
if (width > available) {
available = width;
}
@ -1079,6 +1074,9 @@ void Viewport::RendererGL::validateDatas() {
const auto i = request.index;
const auto index = _tileDataIndices[i];
const auto &data = _tileData[_tileDataIndices[i]];
if (data.nameRect.isEmpty()) {
continue;
}
const auto row = tiles[i]->row();
if (request.updating) {
p.setCompositionMode(QPainter::CompositionMode_Source);

@ -1 +1 @@
Subproject commit 0df1579d4a2fe7b18419e5025db380250c86cc53
Subproject commit 45c476da3a700a68e4890f06504c7f2c09608ba9