mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix build with GCC.
This commit is contained in:
@@ -360,15 +360,12 @@ void Row::PaintCornerBadgeFrame(
|
||||
if (storiesCount) {
|
||||
q.restore();
|
||||
|
||||
const auto st = context.st;
|
||||
const auto outline = QRectF(0, 0, photoSize, photoSize);
|
||||
const auto storiesUnreadCount = data->storiesUnreadCount;
|
||||
const auto storiesUnreadBrush = [&] {
|
||||
if (context.active || !storiesUnreadCount) {
|
||||
return st::dialogsUnreadBgMutedActive->b;
|
||||
}
|
||||
const auto left = st->padding.left();
|
||||
const auto top = st->padding.top();
|
||||
auto gradient = Ui::UnreadStoryOutlineGradient(outline);
|
||||
return QBrush(gradient);
|
||||
}();
|
||||
|
@@ -233,7 +233,6 @@ List::Layout List::computeLayout(float64 expanded) const {
|
||||
const auto smallCount = std::min(
|
||||
kSmallThumbsShown,
|
||||
itemsCount - smallSkip);
|
||||
const auto smallWidth = st.photo + (smallCount - 1) * st.shift;
|
||||
const auto leftSmall = st.left - (smallSkip ? st.shift : 0);
|
||||
const auto leftFull = full.left - _scrollLeft + skipSide;
|
||||
const auto startIndexFull = std::max(-leftFull, 0) / singleFull;
|
||||
|
Reference in New Issue
Block a user