mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix many video tiles in voice chats.
This commit is contained in:
parent
482ad74c57
commit
1858e7e8ac
2 changed files with 5 additions and 7 deletions
|
@ -319,6 +319,7 @@ void Viewport::RendererGL::paint(
|
||||||
auto index = 0;
|
auto index = 0;
|
||||||
for (const auto &tile : _owner->_tiles) {
|
for (const auto &tile : _owner->_tiles) {
|
||||||
if (!tile->shown()) {
|
if (!tile->shown()) {
|
||||||
|
index++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
paintTile(
|
paintTile(
|
||||||
|
@ -970,14 +971,8 @@ void Viewport::RendererGL::validateDatas() {
|
||||||
return std::clamp(row->name().maxWidth(), 1, hasWidth) * factor;
|
return std::clamp(row->name().maxWidth(), 1, hasWidth) * factor;
|
||||||
};
|
};
|
||||||
for (auto i = 0; i != count; ++i) {
|
for (auto i = 0; i != count; ++i) {
|
||||||
if (!tiles[i]->shown()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
tiles[i]->row()->lazyInitialize(st::groupCallMembersListItem);
|
tiles[i]->row()->lazyInitialize(st::groupCallMembersListItem);
|
||||||
const auto width = nameWidth(i);
|
const auto width = nameWidth(i);
|
||||||
if (width <= 0) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (width > available) {
|
if (width > available) {
|
||||||
available = width;
|
available = width;
|
||||||
}
|
}
|
||||||
|
@ -1079,6 +1074,9 @@ void Viewport::RendererGL::validateDatas() {
|
||||||
const auto i = request.index;
|
const auto i = request.index;
|
||||||
const auto index = _tileDataIndices[i];
|
const auto index = _tileDataIndices[i];
|
||||||
const auto &data = _tileData[_tileDataIndices[i]];
|
const auto &data = _tileData[_tileDataIndices[i]];
|
||||||
|
if (data.nameRect.isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const auto row = tiles[i]->row();
|
const auto row = tiles[i]->row();
|
||||||
if (request.updating) {
|
if (request.updating) {
|
||||||
p.setCompositionMode(QPainter::CompositionMode_Source);
|
p.setCompositionMode(QPainter::CompositionMode_Source);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 0df1579d4a2fe7b18419e5025db380250c86cc53
|
Subproject commit 45c476da3a700a68e4890f06504c7f2c09608ba9
|
Loading…
Add table
Reference in a new issue