mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Fix many video tiles in voice chats.
This commit is contained in:
@@ -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);
|
||||||
|
Submodule Telegram/lib_ui updated: 0df1579d4a...45c476da3a
Reference in New Issue
Block a user