mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fix build with GCC.
This commit is contained in:
parent
0e79bd3d12
commit
4b618a3578
4 changed files with 2 additions and 5 deletions
|
@ -5020,7 +5020,6 @@ void OverlayWidget::paintCaptionContent(
|
|||
}
|
||||
if (inner.intersects(clip)) {
|
||||
p.setPen(st::mediaviewCaptionFg);
|
||||
const auto lineHeight = st::mediaviewCaptionStyle.font->height;
|
||||
_caption.draw(p, {
|
||||
.position = inner.topLeft(),
|
||||
.availableWidth = inner.width(),
|
||||
|
|
|
@ -23,7 +23,7 @@ SegmentTree::SegmentTree(std::vector<int> array)
|
|||
// The max size of this array is about 2 * 2 ^ log2(n) + 1.
|
||||
const auto size = 2 * std::pow(
|
||||
2.,
|
||||
std::floor((std::logf(_array.size()) / std::logf(2.)) + 1));
|
||||
std::floor((std::log(_array.size()) / std::log(2.)) + 1));
|
||||
_heap.resize(int(size));
|
||||
build(1, 0, _array.size());
|
||||
}
|
||||
|
|
|
@ -864,10 +864,8 @@ void StackLinearChartView::paintSelectedXIndex(
|
|||
if ((selectedXIndex < 0) || c.footer) {
|
||||
return;
|
||||
}
|
||||
const auto &[localStart, localEnd] = _transition.zoomedOutXIndices;
|
||||
const auto xPercentageLimits = _transition.zoomedOutXPercentage;
|
||||
p.setBrush(st::boxBg);
|
||||
const auto r = st::statisticsDetailsDotRadius;
|
||||
const auto i = selectedXIndex;
|
||||
const auto isSameToken = (_selectedPoints.lastXIndex == selectedXIndex)
|
||||
&& (_selectedPoints.lastHeightLimits.min == c.heightLimits.min)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a38b60636a42932b5e4d3d2391769a34876a2626
|
||||
Subproject commit 7ed87d049f1fdd21e4e1d36743bb3cbefe069a0d
|
Loading…
Add table
Reference in a new issue